Issue Bug Closed

#17439Cropscaling of GIF Images fails if GDlib use the function truecolor

Georg Schnweger 07/05/07, 14:06 updated 09/06/13, 09:15

Description

I use the TS Code below to crop a GIF Image. The cropped Image has the right dimensions(150px*150px) but the Param width looks like width=“450”!
TS-Code:
temp.img = IMAGE
temp.img {
file = fileadmin/img04.gif
file.width = 150c
file.height = 150c
}

This happens because after the cropped image is createt in class.t3lib_stdgraphic.php the dimensions of the newly-created Image aren’t recalculated if $this->truecolor is true. The attached diff file works for me.

I use Image-Magic 4.2.9, gdlib_2 is activ.
(issue imported from #M5903)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.