PDA

View Full Version : Weird EE bahaviour after server interruption


karim
27th of March 2005 (Sun), 21:06
Hi Pekka and all

My webhosting company had a problem this weekend and had to take their servers offline until this morning...

I uploaded a few images today, only to realise that no matter what I tried, the generated thumbnails are exactly the same size as the "normal" size images. I checked that imagemagick (convert and composite) were still in the same directories as before, they weren't. I corrected the path and validated their location with EE. But I'm STILL getting the weird thuimbnail sizes...

Here is part of the message that EE spits out when i try to rethumbnail:

msg 77139 | imagemagick: IMAGEMAGICK COMMAND | /usr/bin/convert -size 65x65 temp/050324_2020_VB4U0017.JPG -resize 65x65! -unsharp 0.6x0.7+2+0.1 -quality 80 UPLOAD/ee_temp_upload/050324_2020_VB4U0017.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)


Oh and yes, all directories have been chmod to 777; the images do not have zero data

I'm without a clue, any hint would be MUCH appreciated.

Thanks

Pekka
28th of March 2005 (Mon), 06:27
Could be an updated Imagemagick. Try setting the sharpening off in resize methods you use. I have seen certain versions of IM crash with certain sharpening settings. "Safe" settings are

- sigma must be 1, or more than 1
- radius can be 0 or 1, or greater than 1. (e.g. .3 may crash).

If that is the problem, then you'll need to change sharpening settings accordingly, e.g.

amount 50
treshold 0.1
sigma 1.1
radius 0

gives quite a good start.

Check also that ee_temp_upload directory is chmod 777 - if they moved the server they might have messed the permissions.

karim
28th of March 2005 (Mon), 12:26
thanks Pekka,

i changes the resize methods, but this didn't have any effect. I'm still getting the same error message:

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'm not sure what the PHP safe mode thing is. Could that be it?

Thanks

k