Project

General

Profile

Actions

Bug #37597

closed

Negative image width if first image is a png

Added by Thomas Layh almost 12 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2012-05-30
Due date:
% Done:

0%

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

Description

How to reproduce:

Select a content element of type "Image" and add e.g. 3 images. If the first image is a png and the other two images are jpgs, the image size of the first image is negative. Don't select a width or height and set the number of columns to 3.

If you move one of the jpg images to the first position, the image width is calculated correctly.

This happens in version 4.5.15 and in the current master.

I searched in class.tx_cssstyledcontent_pi1.php for a while, but I am not sure how to solve this. I will push a patch to review in a couple of minutes, but my guess is, that this is not enough to fix this correctly.


Files

negative-image-width.png (138 KB) negative-image-width.png Thomas Layh, 2012-05-30 10:14
first-image-png-negative-width.png (119 KB) first-image-png-negative-width.png More than 1 image per row. First image png. Negative width. Martin Günther, 2013-04-10 09:08
first-image-jpg-not-scaled.png (347 KB) first-image-jpg-not-scaled.png More than 1 image per row. First image jpg. Scaled to original size. Martin Günther, 2013-04-10 09:08
one-image-per-row-first-png.png (112 KB) one-image-per-row-first-png.png 1 image per row. First image png. Everything ok. Martin Günther, 2013-04-10 09:08
one-image-per-row-first-jpg.png (112 KB) one-image-per-row-first-jpg.png 1 image per row. First image jpg. Everything ok. Martin Günther, 2013-04-10 09:08
Actions

Also available in: Atom PDF