Project

General

Profile

Actions

Bug #17439

closed

Cropscaling of GIF Images fails if GDlib use the function truecolor

Added by Georg Schnweger over 17 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-07-05
Due date:
% Done:

0%

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

Description

I use the TS Code below to crop a GIF Image. The cropped Image has the right dimensions(150px*150px) but the <IMG> 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)


Files

class.t3lib_stdgraphic.patch (532 Bytes) class.t3lib_stdgraphic.patch Administrator Admin, 2007-07-05 14:06
img04.gif (1.7 KB) img04.gif Administrator Admin, 2007-07-10 12:26
Actions #1

Updated by Georg Schnweger over 17 years ago

Nobody the same problem? I uploaded the image file that brings me the error.

Actions #2

Updated by Christian Heindl over 16 years ago

i got the same bug when enabling [GFX][png_truecolor] setting. I installed Georgs patch and it worked also for me. Would be nice to see the patch in an upcoming release!

Actions #3

Updated by Alexander Opitz over 11 years ago

  • Category deleted (Communication)
  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #4

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF