Project

General

Profile

Actions

Bug #59216

closed

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

Added by Stefan Neufeind almost 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2014-05-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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:

    <img width="0" height="0" border="0" alt="" src="fileadmin/someimg.jpg">

  • 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
  }
}

Files

screenshot.jpg (268 KB) screenshot.jpg Harald Dolderer, 2014-06-18 17:47

Related issues 10 (0 open10 closed)

Related to TYPO3 Core - Bug #46020: Image size is 0 when not scaledClosedAlexander Opitz2013-03-04

Actions
Related to TYPO3 Core - Bug #62400: Lot of entries in sys_file_processed with name=NULL and identifier emptyRejectedAndreas Wolf2014-10-22

Actions
Related to TYPO3 Core - Bug #61181: FAL: file maxW and maxH are ignoredRejected2014-08-25

Actions
Related to TYPO3 Core - Bug #44105: Image size does not get updatedClosed2012-12-19

Actions
Related to TYPO3 Core - Bug #45922: image replacement, width and height are kept even i change my imageClosed2013-02-28

Actions
Related to TYPO3 Core - Bug #46446: sys_file doesn't get updatedClosed2013-03-20

Actions
Related to TYPO3 Core - Bug #52658: Overriding image does not change the dimensionsRejected2013-10-10

Actions
Related to TYPO3 Core - Bug #54533: imgResource.noScale doesn't scale image tagRejected

Actions
Related to TYPO3 Core - Bug #58019: FAL Indexer for broken files: Column 'width' cannot be nullRejected2014-04-17

Actions
Related to TYPO3 Core - Bug #62247: FAL: Uppercase File Extensions of Image cannot be displayed RejectedBenni Mack2014-10-15

Actions
Actions

Also available in: Atom PDF