PDA

View Full Version : Safe mode Problem with IM


EricKonieczny
21st of January 2005 (Fri), 11:05
I know, several people have had the same question, but I didn't see an answer in the searches. I have fixed my other problems quickly, but this is puzzling. this happened after a Database backup also.



msg 3220 | ftp: UPLOAD FINISHED WITH ERRORS.
msg 3219 | database action: Photo id 112 added to database.
msg 3218 | ftp: LOCAL: DISCONNECTED
msg 3217 | ftp: Test_work.jpg: UPLOAD ERROR. Reason: ftp_put(IMAGEMAGICK FAILEDTest_work.jpg) [function.ftp-put (http://www.ekreating.com/gallery/input/function.ftp-put)]: failed to open stream: No such file or directory
msg 3216 | imagemagick: IMAGEMAGICK COMMAND | convert -size 37x50 UPLOAD/ee_temp_upload/Test_work.jpg -resize 37x50! -unsharp 0.6x0.7+2+0.1 -quality 100 UPLOAD/ee_temp_upload/Test_work.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 3215 | imagemagick: IMAGEMAGICK COMMAND | composite -gravity SouthWest watermarks/Watermark © Eric Konieczny.png UPLOAD/Test_work.jpg UPLOAD/ee_temp_upload/Test_work.jpg
IMAGEMAGICK ERROR:



I Looked at my PHP info and it is lsted as Safe Mode OFF locally and Master

but Beta note says : betanote: safe mode is on



I have changed the Profile settings, Imagmagick is testing okay, and unchecked the profule box on the Resize methods


help

Pekka
21st of January 2005 (Fri), 11:50
Looks to me like folder permission problem (chmod 777 not done). Phpinfo is correct, safe mode is OFF.

EricKonieczny
21st of January 2005 (Fri), 12:35
I have Edited every folder permissions to 777 , ,


but the problem seems to be coming from the watermark process in IM


When I unchecked the watermark image process, it uploaded and worked.

I get the errors on any resize image that has watermark image process checked.


I can watermark in CS if I need to, but it would be nice to do it hear if possible.


any solution?

Pekka
21st of January 2005 (Fri), 13:10
I have Edited every folder permissions to 777 , ,


but the problem seems to be coming from the watermark process in IM


When I unchecked the watermark image process, it uploaded and worked.

I get the errors on any resize image that has watermark image process checked.


I can watermark in CS if I need to, but it would be nice to do it hear if possible.


any solution?


Have you tried with watermarks that came with EE? Perhaps there is a file format problem.

EricKonieczny
21st of January 2005 (Fri), 13:21
Thanks for the quick replies Pekka,


I did try the watermarking process out with the EE inlcuded watermarks and the fubar.png worked and i got a error with one of the others.


I am not sure why.



it is a .png file created with PS CS

Would Interlaced or Non Interlaced PNG make a difference?

I don't have CS on this computer, so I will look when I get home.

What other formats are supported by Imagemagick for watermarking?

is .psd supported?

.gif, png, and what?

Pekka
21st of January 2005 (Fri), 13:54
I just did some tests and interlace does not make a difference. Try using the fubar.png as source file and do your own one over it and save it.

BUT: I noticed a problem with Imagemagick 6.0.5 when I had watermarking "Before resize and sharpen". This had the effect of preventing image resize (otherwise it was fine), at least on my XP. They have changed command structure in IM 6 series, I'll have to fix these surprises coming from those changes.

So, can you please test if there is difference between "before resize and sharpen" and "after resize and sharpen".

EricKonieczny
21st of January 2005 (Fri), 17:02
I had a chance to edit my watermark image.

I found the main problem, it was the naming convention I used for the file, IM or EE didn't like it. I made the watermark's file name shorter with no spaces.


I tested the "Before" and "After" resize methods, and they seem to be working correctly.

Here is the test gallery I created if you want to look and how the " add watermark Before" turned out.

http://www.ekreating.com/gallery/list.php?exhibition=14&pass=d31bd25588 (http://www.ekreating.com/gallery/list.php?exhibition=14&pass=d31bd255884820c4f24922d0a07cffd4)820c4f24922d 0a07cffd4 (http://www.ekreating.com/gallery/list.php?exhibition=14&pass=d31bd255884820c4f24922d0a07cffd4)


Thanks Pekka