Project

General

Profile

Actions

Bug #57649

closed

IMAGE, GIFBUILDER, crop and $TYPO3_CONF_VARS['GFX']['gdlib_png'] = 1

Added by Christian Stern over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2014-04-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Default-Settings after install

[GFX][im_version_5] = gm
graphicsmagick 1.3.16-1.1 amd64

Situation 1:
$TYPO3_CONF_VARS['GFX']['gdlib_png'] = 0

page >
page = PAGE
page.30 = IMAGE
page.30.file = GIFBUILDER
page.30.file {
XY = [30.w],[30.h]

30 = IMAGE
30 {
file = fileadmin/root/dev/IMG_0343.JPG
file.width = 262c
file.height = 262c
}
}

page.40 = IMAGE
page.40 {
file = fileadmin/root/dev/IMG_0343.JPG
file.width = 262c
file.height = 262c
}

IMAGE is working correctly. The GIFBUILDER produced an empty image with the following errors:

Core: Error handler (FE): PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /typo3_src-6.2.0/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php line 487
Core: Error handler (FE): PHP Warning: imagesy() expects parameter 1 to be resource, boolean given in /typo3_src-6.2.0/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php line 504
Core: Error handler (FE): PHP Warning: imagesx() expects parameter 1 to be resource, boolean given in typo3_src-6.2.0/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php line 503
Core: Error handler (FE): PHP Warning: imagecreatefromgif(): 'fileadmin/_processed_/csm_IMG_0343_907e1381d6.gif' is not a valid GIF file in /typo3_src-6.2.0/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php line 2886

When $TYPO3_CONF_VARS['GFX']['gdlib_png'] = 1 everything works as excepted

$TYPO3_CONF_VARS['GFX']['gdlib_png'] = 0 and [GFX][im_version_5] = im6 also works correctly.

Actions #1

Updated by Teamgeist Medien over 9 years ago

I can confirm this warning. $TYPO3_CONF_VARS['GFX']['gdlib_png'] = 1 fixed it for me.

Actions #2

Updated by Riccardo De Contardi almost 9 years ago

It is still present in both 6.2.15 and 7.6-dev (latest master).
Setting $TYPO3_CONF_VARS['GFX']['gdlib_png'] = 1 fixes both enviroments.

Actions #3

Updated by Susanne Moog almost 7 years ago

  • Category changed from Image Cropping to Image Generation / GIFBUILDER
Actions #4

Updated by Riccardo De Contardi about 6 years ago

  • Status changed from New to Closed

I've performed a test on 6.2.31, 7.6.25, 8.7.13 and 9.3-dev:

  • 6.2.31 -> still reproducible
  • 7.6.25 -> still reproducible
  • 8.7.13 -> not reproducible
  • 9.3-dev -> not reproducible

We feel sorry but this issue will not be fixed on version 7.6.x as it is in its "priority bugfix" phase of life, and only security and critical bugfixes will be developed.

If you experience the issue again on newer TYPO3 versions, please reopen it or open a new issue with a reference to this one.

Thank you and best regards.

Actions

Also available in: Atom PDF