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

Also available in: Atom PDF