PDA

View Full Version : ImageMagick Woes


jgbiggs
24th of October 2004 (Sun), 12:29
I just downloaded and followed the excellent setup instructions for RC4. My problem is that for some reason imagemagick doesn't seem to work.

The Imagemagick test in the Settings/Graphic Moduels works fine but I am gettting this error when executing IM from UPLOAD TO DATABASE.

msg 638 | ftp: LOCAL:
'IMG_1338.JPG' UPLOADED SUCCESFULLY
SIZE: 2272x1704 => 43x32 microthumb (IMAGEMAGICK 43) , 823 KB in server.
msg 637 | imagemagick: IMAGEMAGICK COMMAND | convert -size 43x32 UPLOAD/IMG_1338.JPG -resize 43x32! +profile '*' -unsharp 0.6x0.7+2+0.1 -quality 67 UPLOAD/ee_temp_upload/IMG_1338.JPG
IMAGEMAGICK ERROR:

POSSIBLE REASONS:
SAFE MODE ON? EE can not use ImageMagick when is it located outside PHP safe mode exec dir.
IMAGE IS EMPTY? Perhaps source image was zero size.
IMAGEMAGICK PATH CHANGED? Maybe your server admin has moved IM to another location.
FOLDER PERMISSIONS WRONG? check that UPLOAD folder and all folders inside it are chmod 0777 (full permissions)


I have checked my permissions on /UPLOAD and all (2) of the subdirs.

Any ideas?

Pekka
24th of October 2004 (Sun), 13:31
Might be the profile removal command. Try different ones in IM setup page or set up a test resize method without profile removal.

Check also that other temp folders in EE are chmod 777.

jgbiggs
24th of October 2004 (Sun), 13:51
I disabled the profile removal command for all of my resizing setups. No luck.

I have also checked all the recommended file paths to make sure they are 777.

Any other ideas?

Pekka
24th of October 2004 (Sun), 14:03
Does your Imagemagick test in EE works ok and it produces a thumbnail?

If not, make sure that you indeed have imagemagick installed and you can run exec commands in PHP. You'll get this info from you system admin. They can also let you know if IM left any error messages in system logs.

If above is verified try saving the jpeg in different way - e.g. non progressive JPG should always work.

Also, try smaller originals - it may be that IM runs out of RAM when opening and copying your image:

SIZE: 2272x1704 => 43x32 microthumb (IMAGEMAGICK 43) , 823 KB in server.

823 KB here does not look right at all for a microthumb (should be more like 800 bytes).

jgbiggs
25th of October 2004 (Mon), 09:14
I took your suggestion and tried resizing a smaller file (~100K) and had no success with imagemagick, but gd was successful in resizing the image.

My problem now is that the thumbs and microthumbs are not showing up. They appear as a broken link. Running the pathanaysis, it shows that the URL for the thumbs it pointing to the correct dir and file. I have checked the permissions on the dir and actual thumbnail file and both allow reading. (777 for the dir and 644 for the file)

The actual image in /photos/normal displays fine once I click on the thumbnail.


What is up?

Paths:

URL www.mysite.com/gallery/photos/normal
FTP /public_html/gallery/photos/normal
Relative ../photos/thumb/

Any ideas?

jgbiggs
25th of October 2004 (Mon), 12:35
Forget last post. Problem solved. My bad.