Bug #18566
closed
Image crop does not work in RC1
Added by Steffen Gebert over 16 years ago.
Updated over 14 years ago.
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
I can't confirm that, it works for me.
Steffen, did you notice the ImageMagick version?
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.
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.
@Steffen Gebert: please test the attached patch!
I thought IM4.2.9 is inofficial recommended for TYPO3 ;-)
@Helmut
I'll test it ASAP
Thanks, Helmut. The patch works.
Hey all,
was this patch sent to the core list?
I know that cropping was fixed in core, but i think it was a different patch
Closed during Bug Day 07/2008
Also available in: Atom
PDF