Page 1 of 1
I have not converted a tiff but there are some php code examples I have made at http://www.rubblewebs.com/imagemagick/thumbnail.php
If you use my code for some reason the line below is causing a problem all of a sudden, I do not know if my host has changed something but just remove it. If you are letting others upload to your server you will need to put other safety precautions in the code.
// Strip any malicious code from the user input
$new_image = escapeshellarg( $new_image );
I would try making the comand simpler first and see what happens:
Code: Select all
exec("/usr/local/bin/convert plans/24.tif -resize 310x414! -quality 50 -debug all thumbnails/24.jpg");
I have found you do not need the full server path to the image.
An image path like /Users/johnm/webfolder/win/plans/24.tif seems to cause problems - it may be all the / in the path.
If you need a path like /Users/johnm/webfolder/win/plans/24.tif it seems better to put it into a variable and call the variable in the code instead.
Otherwise I have no idea what your problem is.
You do have a ".thumbnail" sub-directory don't you?
typo. missing the parent directory is a common cause for permission denied.
unable to open module file `/usr/local/lib/ImageMagick-6.2.7/modules-Q16/coders/tiff.la': No such file or directory
Looks like u cannot read tiff's at all. Are u sure a *proper* thumbnail was generated from the terminal, and not a black empty *thingy*
Try it with another type of source file, .png .bmp .jpg etc.