PDA

View Full Version : Failure to Resize


joey23
3rd of February 2005 (Thu), 12:57
for 3 days I have been trying to figure this out - I give up - I must post :o

I am able to upload pictures.
They get dropped into the "gallery/input/upload" folder. I have verified in my FTP program.

When I go for the resize though, I get the imagemagick errors.

Per a previous post I checked with my host & they said that they don't run PHP in safe mode at all.

Also, I confirmed permission settings on each folder that has been mentioned in previous posts. I really think I've got that part down.

I am using RC5. I have never used EE before, so I am a newbie.

Here is an example.

DSC00045.jpg has already been uploaded to
/gallery/input/UPLOAD folder. It absolutely exists.

When I go for a resize, I pick "small IMAGEMAGICK 320"
I get the following messages:

msg 1194 | ftp:

Automatic database maintenance:
table: egerton_photos.ee_order_to_exhibition | operation: repair | status: OK
table: egerton_photos.ee_photo | operation: repair | status: OK
table: egerton_photos.ee_photo_eng | operation: repair | status: OK
table: egerton_photos.ee_photo_to_category | operation: repair | status: OK
table: egerton_photos.ee_photo_to_ee_commerce_template | operation: repair | status: OK
table: egerton_photos.ee_photo_to_exhibition | operation: repair | status: OK
msg 1193 | ftp: UPLOAD FINISHED SUCCESFULLY.
msg 1192 | database action: Photo id 14 added to database.
msg 1191 | ftp: LOCAL: DISCONNECTED
msg 1190 | ftp: LOCAL:
'118_DSC00045.JPG' UPLOADED SUCCESFULLY
SIZE: 1024x768 => 43x32 microthumb (IMAGEMAGICK 43) , 338 KB in server.
msg 1189 | imagemagick: IMAGEMAGICK COMMAND | convert -size 43x32 UPLOAD/118_DSC00045.JPG -resize 43x32! +profile '*' -unsharp 0.6x0.7+2+0.1 -quality 67 UPLOAD/ee_temp_upload/118_DSC00045.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 1188 | ftp: LOCAL: Working directory changed to '/home/egerton/public_html/gallery/photos/microthumb'
msg 1187 | ftp: LOCAL: Changed to passive mode
msg 1186 | ftp: LOCAL: Logged in as 'egerton'
msg 1185 | ftp: LOCAL: Connected to '64.247.48.197'
msg 1184 | ftp: LOCAL: DISCONNECTED
msg 1183 | ftp: LOCAL:
'118_DSC00045.JPG' UPLOADED SUCCESFULLY
SIZE: 1024x768 => 110x82 thumb (IMAGEMAGICK 110) , 338 KB in server.
msg 1182 | imagemagick: IMAGEMAGICK COMMAND | convert -size 110x82 UPLOAD/118_DSC00045.JPG -resize 110x82! -unsharp 0.4x0.5+2+0.1 -quality 80 UPLOAD/ee_temp_upload/118_DSC00045.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 1181 | ftp: LOCAL: Working directory changed to '/home/egerton/public_html/gallery/photos/thumb/'
msg 1180 | ftp: LOCAL: Changed to passive mode
msg 1179 | ftp: LOCAL: Logged in as 'egerton'
msg 1178 | ftp: LOCAL: Connected to '64.247.48.197'
msg 1177 | ftp: LOCAL: DISCONNECTED
msg 1176 | ftp: LOCAL:
'118_DSC00045.JPG' UPLOADED SUCCESFULLY
SIZE: 1024x768 => 320x240 small (IMAGEMAGICK 320) , 338 KB in server.


msg 1175 | imagemagick: IMAGEMAGICK COMMAND | convert -size 320x240 UPLOAD/118_DSC00045.JPG -resize 320x240! -unsharp 0.4x0.5+1+0.1 -quality 75 -antialias UPLOAD/ee_temp_upload/118_DSC00045.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 1174 | ftp: LOCAL: Working directory changed to '/home/egerton/public_html/gallery/photos/small'
msg 1173 | ftp: LOCAL: Changed to passive mode
msg 1172 | ftp: LOCAL: Logged in as 'egerton'
msg 1171 | ftp: LOCAL: Connected to '64.247.48.197'
msg 1170 | exif: EXIF of 'UPLOAD/118_DSC00045.JPG':
( I deleted here all the EXIF stuff for brevity )
msg 1169 | ftp: RENAMED (b) 'UPLOAD/DSC00045.JPG' to 'UPLOAD/118_DSC00045.JPG'

----------

Really sorry that this is so long.

If I do a Path Analysis on DSC00045 :

JPEG small http://www.egerton.info/gallery/photos/small/DSC00045.JPG smalljpeg ---NOT FOUND NOTICE: NO DEFAULT PATH (variable: default) FOUND.
URL: THUMBS (per exhibition, put mouse over photos to see more info)
http://www.egerton.info/gallery/input/graphs/notfound.gif
URL: MICROTHUMBS (per exhibition, put mouse over photos to see more info)
http://www.egerton.info/gallery/input/graphs/notfound.gif

------------------

Server info, just for the record:
Server signature:
Server name: www.egerton.info (http://www.egerton.info)
Server protocol: HTTP/1.1
Http accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Http accept encoding: gzip,deflate
MySQL version (reported by MySQL server): 4.0.22-standard
PHP version: 4.3.10

I know that I do not yet grok how EE works.
Thanks for helping.

Pekka
3rd of February 2005 (Thu), 14:00
PM me login info to your editor, and ftp login info (do NOT post it here). That is the fastest way to solve your question.

What I would fist check is the Imagemagick test works and resize methods produce test image.

Then I would see that "/home/egerton/public_html/gallery/photos/thumb/" is a real ftp path.

joey23
8th of February 2005 (Tue), 03:10
sorry for the delay in replying - Thanks Pekka for your kind offer ... it embarassed me into working harder :-) Like another poster - I deleted everything & started from scratch. This time I printed out the install manual & really did go step by step ...

It was the path. In the error messages above, you'll see that the paths looked like: "home/egerton/public_html/gallery/photos/thumb/ "

I should have left off the home/egerton stuff. That is server root folder.

The path should have started with the /public_html/ instead. Things started working better after that

& I am now able to load pics, get all the different sizes set up correctly, yahoo!

You should have am autoresponse to requests for installation help: " IT'S THE PATH! Follow the MANUAL !! "

cheers!


Thanks again for your offer ...