Project

General

Profile

Actions

Bug #57075

closed

TYPO3 version 6.2beta images scale wrong when setting height in content element

Added by Vincent Mans about 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Category:
Image Cropping
Target version:
Start date:
2014-03-19
Due date:
% Done:

100%

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

Description

Below, copied text from my additions to the English list. That describes the issue the best I suppose.

On the same server I have 6.1.x and 6.2 beta6. The first one scales images
properly, the newest one does not. The proportions get lost. Test setup is
okay.

It occurs very clearly on tiffs. Anybody any clue?

===

For instance, a .tiff (or .tif) image with w * h.

Original size:
652 * 791 => ratio = 0.82

When setting height in content element to 125px the resulting image becomes:
196 * 125 => ratio = 1.57
The 196px width should be 103px width in stead.

Setting width to e.g. 125px results in this:
125 * 152 => ratio = 0.82

Portrait tifs are narrowed. There is no tif going okay, even square ones
are flattened. And of course, this customer has all the images as tif.

With the images as .png it goes okay.

So, in conclusion, setting the height on .tiff/.tif makes the wrong ratio.
Only in 6.2 because on the same server (so same ImageMagick) with 6.1.7 I
encounter no problems.

Additional information:

Configuration Presets > Image handling settings mentions this:
ImageMagick version 6 or higher was not found in standard system paths.

Strange, because it works in the Install Tool Test setup. And it works in
6.1.7. (Is this buggy as well?)

All configuration (if it matters):

[GFX][imagefile_ext] = gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pd
[GFX][gdlib_png] = 1 (if 0, same problems)
[GFX][im_noScaleUp] = 0 (or 1, no difference)

Quality and Type settings make no difference.

That's about it I guess. Smells buggy, but I have no idea.

===

Yes, I confirm that the original height/width is in the sys_file_metadata
table are correct.

By the way, I haven't found this on jpg's so far, but they appear to be
correct. Watching it closely with png's I found a minor shift in width, for
instance 101px in stead of what should be 103px. And I see this effect only
when setting height.


Files

sample.tif (13.8 KB) sample.tif Xavier Perseguers, 2014-03-20 12:04
sample.png (271 Bytes) sample.png Xavier Perseguers, 2014-03-20 12:13
Actions

Also available in: Atom PDF