PDA

View Full Version : ImageMagic won't create resized thumbs and microthumbs


msbc
7th of October 2003 (Tue), 09:04
I've followed the advice in http://photography-on-the.net/forum/showthread.php?t=17936 and found that the setting +profile "*" on the graphics modules test page gave me a 3kb result. So I removed all extra commands from both the 'Big sizes' and 'Thumbs and Microthumbs' sections of the Resize Method Editor and checked 'Remove profiles'. The previews work as expected.

When I upload an image I get the same sized image in the thumbs and microthumbs folders as the normal folder. In the ftp messages I see the following:

msg 932 | ftp
LOCAL: IMAGEMAGICK COMMAND
convert -size 43x28 UPLOAD/SRPro_12_Medium.jpg -resize 43x28! +profile "*" -unsharp 0.4x0.7+2+0.1 -quality 67 UPLOAD/ee_temp_upload/SRPro_12_Medium.jpg
: IMAGEMAGICK ERROR:

POSSIBLE REASON: SAFE MODE ON. Can not use ImageMagick commands when they are outside PHP safe mode exec dir.
[Tue Oct 7th, 2003 23:48:58]


A couple of further points here:
1. The editor page shows "safe mode is on" even though my php.ini has safe_mode = Off.
2. If I try the 'Display full PHP info' link on the server info page I get a Windows error notification about Apache (1.3.28 on WinXP SP1).

I've tried every combination of profile command and extracommand switch but they all give the same result. Could it really be a safe mode problem? How can I test for sure given that the php info link causes an error?

I'm running 1.5b3 FP 3.

Thanks,
Mark

Pekka
7th of October 2003 (Tue), 10:00
First thing that occurs to me is that you'd better check that folder /UPLOAD/ee_temp_upload has full permissions (0777)

If the "bigger sizes" resize is ok, then I'm a bit puzzled because thumbs use the same imagemagick.php and same temp folder.

To prevent thumbs revert to big size in case of errors in IM procedure, download http://photography-on-the.net/imagemagick_b.zip

A couple of further points here:
1. The editor page shows "safe mode is on" even though my php.ini has safe_mode = Off.
2. If I try the 'Display full PHP info' link on the server info page I get a Windows error notification about Apache (1.3.28 on WinXP SP1).

There are so many ways to set up PHP, and there are two safe mode settings, one for global PHP and one for each site. If you can make the IM test work, then it works regardless of reported safe mode status.

I can't tell anything about that Apache error, I run Apache 1.3.27 in XP without problems.

iamhives
15th of October 2003 (Wed), 11:30
I am still having the same problem as the first poster in this thread. I get the Imagemagick error on upload despite the fact that all FTP resize setup and resize test are successful. I have tried various profile commands and checked directory permissions. I'm at a loss. This used to work nicely before all of the various upgrades !

Pekka
15th of October 2003 (Wed), 15:09
iamhives wrote:
I am still having the same problem as the first poster in this thread. I get the Imagemagick error on upload despite the fact that all FTP resize setup and resize test are successful. I have tried various profile commands and checked directory permissions. I'm at a loss. This used to work nicely before all of the various upgrades !

To solve this it would be great if you'd let me in to your server - mail me ftp passes and EE folder and I'll investigate it.

email: pekka AT photography-on-the DOT net