Issue Bug Closed

#59216Image dimensions (width/height) are 0 when not scaled

Stefan Neufeind 05/30/14, 02:37 updated 01/08/16, 11:17

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.