Issue Bug Closed

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

Christian Stern 04/04/14, 14:47 updated 05/12/18, 11:21

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.

Reviews 0

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