Ok, after testing this 2 minutes some weeks ago on my debian machine now the time has come to get this to work on our productive system - with some kind of strange setup. And what happened? It doesn't work ;)
So it would be nice if you could assist me while troubleshooting this.
First of all I took the file from the post above and copied all files in the corresponding directories (I hope I did so).
~/oc_config/MagickFiles> cp -r * ../home/includes/lib/
Then I tested our ImageMagick installation:
~/oc_config> convert -version
Version: ImageMagick 6.2.5 10/12/07 Q16 http://www.imagemagick.org
~/oc_config> file -i logo_kv.tiff
logo_kv.tiff: image/tiff
~/oc_config> convert logo_kv.tiff logo.png
~/oc_config> file -i logo.png
logo.png: image/png
So it can handle tiffs correctly.
~/oc_config> which convert
/usr/bin/convert
So the following line has been added to the external_applications.conf:
imagemagick_path = /usr/bin
But when I upload the file I converted with the command line tool above in OC i get
Warning: Division by zero in <somedir>/oc_config/home/includes/lib/plugins/Media/ImageMagick.inc on line 401
Warning: Division by zero in <somedir>/oc_config/home/includes/lib/plugins/Media/ImageMagick.inc on line 402
On the file space it looks like this:
No image
logo_kv.tif
TIFF wxh pixels
0.2M
Unfortunately I didn't have the time to have a look at the code yet. Maybe you have some idea on this?