#59216Image dimensions (width/height) are 0 when not scaled
Description
I have images inserted as media-references in page-records and use level-sliding for header-images with the below attached TypoScript. My source-images currently already have a width of 620 pixels, but could be larger would should be resized to maxW=620.
- If source-image is larger (will be resized) all is fine.
- If source-image already has the correct size, the img-tag will point to the original file – but width/height will be zero:
- When I clear db-table sys_file_metadata and refresh the page, the img-width/height are added to the img-tag correctly.
- When clearing the frontend-cache again, the size is zero again.
Experienced with TYPO3 CMS 6.2.3, which afaik should already have all fixes from #46020 etc.
obj.headerimage = FILES
obj.headerimage {
references {
table = pages
#uid.data = leveluid:-1, slide
#fieldName = media
data = levelmedia:-1, slide
}
renderObj = IMAGE
renderObj {
file.import.data = file:current:publicUrl
file.maxW = 620
}
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 10
- Bug #44105Image size does not get updated
- Bug #45922image replacement, width and height are kept even i change my image
- Bug #46020Image size is 0 when not scaled
- Bug #46446sys_file doesn't get updated
- Bug #52658Overriding image does not change the dimensions
- Bug #54533imgResource.noScale doesn't scale image tag
- Bug #58019FAL Indexer for broken files: Column 'width' cannot be null
- Bug #61181FAL: file maxW and maxH are ignored
- Bug #62247FAL: Uppercase File Extensions of Image cannot be displayed
- Bug #62400Lot of entries in sys_file_processed with name=NULL and identifier empty