[TYPO3-english] TYPO3 6.2, host with safe_mode, ImageMagick troubles

Jeppe Donslund jeppe at donslund.net
Thu Feb 12 07:37:49 CET 2015


Hi there.

On shared host with safe_mode turned on, I have a lot of trouble with ImageMagick.
It works nicely if I hardcode an example outside TYPO3, but inside TYPO3 IM doesn't work. 
I know that I am writing the paths correctly, and I have tried many different paths.
The path I use in the hardcoded example is bot working inside TYPO3.

I guess that it is safe_mode that is my trouble and I am asking the host on almost daily basis when they will upgrade to next version of PHP where safe_mode no longer exists.

But for know, are there anything to do exept for scaling my images with css?

Hope someone knoews the magick trick.

This is from localconfiguration:

'GFX' => array(
		'colorspace' => 'RGB',
		'im' => '1',
		'im_mask_temp_ext_gif' => '1',
		'im_path' => '/usr/local/bin/safe/',
		'im_path_lzw' => '/usr/local/bin/safe/',
		'im_v5effects' => '0',
		'im_version_5' => 'im6',
		'image_processing' => '1',
		'imagefile_ext' => 'gif,jpg,jpeg,png',
		'jpg_quality' => '80',
		'thumbnails' => 0,
	),

And this is my hardcoded IM example.

<?
    system('/usr/local/bin/safe/convert --help');
    exec('/usr/local/bin/safe/convert 1000.jpg -resize 64x64 new_1000.jpg');
?>



More information about the TYPO3-english mailing list