-
- 13 Posts
I´m trying to load an animated Gif with phpThumbOf. But it only shows the first frame of the Gif.
Is it not possible with phpThumbOf or is there an issue in my configuration?
I have
phpThumbOf 1.4,
modx 2.2.5,
php 5.3.18.
-
- 3,975 Posts
Animated GIF support needs ImageMagick to work properly. I suspect that phpThumb is unable to find ImageMagick and using GD lib to process the image files.
You can debug by using demo files inside phpThumb/demos/ folder and see if everything is alright and configured correctly.
-
- 13 Posts
Thank you again, Zaigham. On my webspace I can only use ImageMagick with a .htaccess file and cgi.
I tried this with the package from phpthumb.sourceforge.net in the modxs root folder and it is working after a change in the
phpThumb.config.php file from:
$PHPTHUMB_CONFIG['imagemagick_path'] = 'null';
to
$PHPTHUMB_CONFIG['imagemagick_path'] = '/usr/bin/convert';
Now I have a .htaccess file with
AddHandler php5-cgi .php
in core/model/phpthumb
and I tried to change the path in the file
core/model/phpthumb/phpthumb.class.php
in line 118 to:
public $config_imagemagick_path = '/usr/bin/convert';
But the animated gifs they are going through phpTumbof only showing the first frame.
-
- 13 Posts
So, reinstalled phpThumbOf 1.4 and put in
/usr/bin/convert/
in the System Settings -> core -> phpThumb -> phpThumb ImageMagick Path.
But it is the same, no working animated gif.
Why is it working with phpThumb with the configuration from my post above,
but not with phpThumbOf? How to configure that correctly?