PDA

View Full Version : Image size problems again...


Barnsie
12th of April 2004 (Mon), 20:06
I'm not sure what keeps happening, but I've done it twice now.

I've managed to get everything set up, and posted a handful of photos. Everything seems to work well. I come back a day or two later, try to add a couple more photos, and I get sizing problems.

Here's the site:
http://www.digitalnj.com/exhibit/

Here's the error message:

msg 3297 | ftp: LOCAL:
'IMG_6874.jpg' UPLOADED SUCCESFULLY
SIZE: 2048x3072 => 40x60 microthumb (IMAGEMAGICK 60) , 747 KB in server.
msg 3296 | imagemagick: IMAGEMAGICK COMMAND | convert -size 40x60 UPLOAD/IMG_6874.jpg -resize 40x60! +profile '*' -unsharp 0.6x0.7+2+0.1 -quality 67 UPLOAD/ee_temp_upload/IMG_6874.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)

msg 3295 | ftp: LOCAL: Working directory changed to '/www/exhibit/photos/microthumb'
msg 3294 | ftp: LOCAL: Changed to passive mode


I've checked the folder permissions, tested the sizing methods, the image is okay...I'm not sure how to check the "Safe Mode" suggestion.

Anything else I should check. I had it working, now it's not, bit I've got to think it's something simple.

Thanks,

Barnsie

Pekka
13th of April 2004 (Tue), 04:04
I'm not sure what keeps happening, but I've done it twice now.

I've managed to get everything set up, and posted a handful of photos. Everything seems to work well. I come back a day or two later, try to add a couple more photos, and I get sizing problems.

If you did not change anything EE has not either. The reason must be in original photos - did you save them in same program, or were they in different size?

The IM command in your messages looks fine. I tried the bird photo on my server and it resizes without problems.

One reason I know IM gets you the original instead of resized is when either resize parameter is zero.

One reason could be that ImageMagick runs out of RAM. This is the main reason I suspect.

So my suggestion is: try using smaller originals (e.g. half size). Please let me know if that helped.

Barnsie
13th of April 2004 (Tue), 11:14
Original size doesn't seem to make a difference. I just tried several different sizes with no luck. The current original is 1200x800. I switched to that file in "graphics modules" and the thumbnail shows up fine, almost instantly.

I've got to figure that I messed something else up. Any more recommendations to check?

Barnsie

Pekka
16th of April 2004 (Fri), 17:59
If you still have these problems PM me you editor address/passes and I'll have look.

Barnsie
19th of April 2004 (Mon), 11:23
Were you able to figure out what I had done wrong? What did you have to do to fix it?

Barnsie

Pekka
19th of April 2004 (Mon), 12:33
Were you able to figure out what I had done wrong? What did you have to do to fix it?

Barnsie

There was one temp folder missing inside upload folder, and couple of folders had wrong permissions. I uploaded RC4 there and updated and checked everything.

I've seen people delete temp folders inside upload folder before - perhaps one goes there with ftp and does "select all" when deleting old photos and inadvertly deleted folders, too. This is why I suggest using EE's own file delete function on upload page.

Barnsie
19th of April 2004 (Mon), 12:44
I'll have to keep an eye on the temp folder. After I initially uploaded EE and changed the permissions, I never used an ftp client again. All of my uploads and deletions were done from inside ee. Sort of strange.

Thanks again for your time.

Barnsie