Affects Version/s: 4.2.0
Component/s: Content (images, XML, PDF, RSS, etc.)
Operating System: Ubuntu
PHP Version: 5.5.2
Database and version: MySQL 5.0.60
Browser (and version): N/A
It seems that the shell string parameters order in the command line built by lib/ezimage/classes/ezimageshellhandler.php is wrong with ImageMagick ( 6.4.4 installed on our server ).
Example of a shell string generated by eZImageShellHandler :
When using the filter shown in the "Steps to reproduce", this command line doesn't work.
It must be :
So, you have to :
move this line ( 111 )
after this line ( 78 )
With this change, the command line works.
I don't know if this is a bug or an ImageMagick specific case...
1. Create a new filter and a new alias in image.ini.append.php :
Filters=geometry/scaleexactwithbackgroundcolor=-resize %1x%2> -size %1x%2 xc:#%3 +swap -gravity center -composite
2. Create a class with an image attribute
3. Create a new object
4. In a template, display this image using the my_image alias. This doesn't work : the command line built by the convert function of eZImageShellHandler class is wrong : the source file is at the end of the command line ( before the destination file ) instead of being at the beginning