Project

General

Profile

Actions

Bug #18566

closed

Image crop does not work in RC1

Added by Steffen Gebert about 16 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Communication
Target version:
-
Start date:
2008-04-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

bug_8025_im4.2.9.diff (712 Bytes) bug_8025_im4.2.9.diff Administrator Admin, 2008-04-11 16:29

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #16545: GIFBUILDER indexcolors cropsized imagesClosedOliver Hader2006-09-09

Actions
Related to TYPO3 Core - Bug #19045: Cropscale incorrectly crops GIF filesClosed2008-07-02

Actions
Actions #1

Updated by Steffen Kamper about 16 years ago

I can't confirm that, it works for me.

Actions #2

Updated by Martin Kutschker about 16 years ago

Steffen, did you notice the ImageMagick version?

Actions #3

Updated by Steffen Gebert about 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.

Actions #4

Updated by Helmut Hummel about 16 years ago

I sadly confirm this bug for imagemagick 4.2.9 (found here: http://typo3.sunsite.dk/software/linux/).

Actions #5

Updated by Martin Kutschker about 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.

Actions #6

Updated by Helmut Hummel about 16 years ago

@Steffen Gebert: please test the attached patch!

Actions #7

Updated by Steffen Gebert about 16 years ago

I thought IM4.2.9 is inofficial recommended for TYPO3 ;-)

@Helmut
I'll test it ASAP

Actions #8

Updated by Steffen Gebert about 16 years ago

Thanks, Helmut. The patch works.

Actions #9

Updated by Benni Mack almost 16 years ago

Hey all,

was this patch sent to the core list?

Actions #10

Updated by Steffen Kamper almost 16 years ago

I know that cropping was fixed in core, but i think it was a different patch

Actions #11

Updated by Oliver Hader over 15 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

Actions #12

Updated by Oliver Hader over 15 years ago

Closed during Bug Day 07/2008

Actions

Also available in: Atom PDF