Bug #18566
closedImage crop does not work in RC1
0%
Description
In Beta3 the following code cropped an image successfull to 150x150.
temp.img = IMAGE
temp.img {
file = fileadmin/img.jpg
file.width = 150c
file.height = 150c
}
In RC1 this doesn't work anymore - image is scaled down to selected height.
Imagemagick 4.2.9
(issue imported from #M8025)
Files
Updated by Steffen Kamper over 16 years ago
I can't confirm that, it works for me.
Updated by Martin Kutschker over 16 years ago
Steffen, did you notice the ImageMagick version?
Updated by Steffen Gebert over 16 years ago
Imagemagick 4.2.9 is used as mentioned in Additional Information.
I've just tested it again on another server (first has self-built im429, second the precompiled available) and changed sources from/to Beta3/RC1.
I've got a JPG size 150x400px.
Result (width = 50c, height = 50c) is
- in Beta 3: 50x50px, cropped at top and bottom, file format: GIF
- in RC1: 50x133px, nothing cropped, file format: JPG
Both are totally different installations. Nothing but link to sources is changed.
Updated by Helmut Hummel over 16 years ago
I sadly confirm this bug for imagemagick 4.2.9 (found here: http://typo3.sunsite.dk/software/linux/).
Updated by Martin Kutschker over 16 years ago
I think that ImageMagick 4.x is ancient and we shouldn't care too much about that. If anyone is really interested in this old version he can dig if the crop command wasn't supported then by ImageMagick or if it's again an issue of argument order or whatever.
Updated by Helmut Hummel over 16 years ago
@Steffen Gebert: please test the attached patch!
Updated by Steffen Gebert over 16 years ago
I thought IM4.2.9 is inofficial recommended for TYPO3 ;-)
@Helmut
I'll test it ASAP
Updated by Benni Mack over 16 years ago
Hey all,
was this patch sent to the core list?
Updated by Steffen Kamper over 16 years ago
I know that cropping was fixed in core, but i think it was a different patch
Updated by Oliver Hader over 16 years ago
The fix of this report was committed as follow-up to #16545 and thus fixed in TYPO3 4.2.0:
http://forge.typo3.org/repositories/diff/typo3v4-core?rev=3584