View Full Version : EE 1.5b2 ImageMagick problem thread
Pekka
29th of September 2003 (Mon), 07:29
Please use this thread for all ImageMagick related problems in EE 1.5 beta 2.
-----------------------------------------
Some FAQ's:
1. SETTING UP IMAGEMAGICK PATHS
IM path is set up in "graphics modules" editor.
There are two paths: "convert" and "composite". Convert is required, composite is needed for optional watermarking.
You system admin will tell you correct path to ImageMagick. For Windows use / instead of \ slashes in path.
After you have saved the path you can test it in same graphics modules editor. If the test fails you should open server info editor and see if it says in green text "EE HAS FOUND IMAGEMAGICK OR GRAPHICSMAGICK FROM SAVED PATH" then this means the path to "convert" is correct, and you should go though FAQ step 2:
2. IF IMAGEMAGICK TEST OR RESIZE FAILS:
Perhaps the profile removal needs a different command. Do the following procedure:
Go to "Resize Method editor", edit the topmost resize method to
REMOVE PROFILES: OFF (unticked)
save and try "PREVIEW THIS SIZE NOW". If you see the preview image then this confirms EE's default profile removal command (which removes EXIF and IPTC data from images) is not correct for your system. To find out the correct profile removal command try the above procedure with
EXTRACOMMAND: +profile '*'
EXTRACOMMAND: +profile "*"
EXTRACOMMAND: +profile '*'
Until you find one that works. You can see that the profile command works when the image file size in preview window is smaller with that command than without it (EXTRACOMMAND is empty).
Note the correct profile command and use it on every resize method, and remember to always tick off REMOVE PROFILES.
----------------------------------
Pekka
29th of September 2003 (Mon), 07:37
Notes about watermarks:
Watermark filenames must not contain spaces or special characters.
There is a demo Photoshop file in gallery root for inspiration - that should be saved with "Save for WEB", as 24-bit transparent PNG.
Watermark insertion order:
"before resize & sharpen" means watermark will be scaled with image.
"after resize & sharpen" means watermark will be of fixed (original) size regardless of image size.
gillyworld
29th of September 2003 (Mon), 09:21
Pekka,
I am having re-sizing problems with Imagemagick on 1.5b2 I have all the mini-fixes installed . The problem is this:
1. All the test resizes work ok so I am happy that Imagemagick is there and working
2 When I upload a picture, the thumb and microthumb are re-sized correctly by Imagemagick but the Small, medium and large pictures do not get re-sized at all.
However,
3. If I specify watermarks for the pictures they do get re-sized correctly with the watermarks in place.
Any ideas? I can set up an example if you need it.
Thanks for all your hard work!
Alan
Pekka
29th of September 2003 (Mon), 11:25
Alan,
I tried to reproduce this on my server but could not. What does you EE's ftp message log say about failed try vs. successful try?
gillyworld
29th of September 2003 (Mon), 13:05
Pekka.
Now I have had a look more closely at the logs, some of the IMAGEMAGICK commands fail and some work. here is an extract from the log with watermark:
msg 4644 | ftp
ALIVEWWW: IMAGEMAGICK COMMAND (resize+sharpen)
/usr/local/bin/convert -size 43x28 UPLOAD/varanasai.jpg -resize 43x28! -unsharp 0.4x0.7+2+0 -quality 67 UPLOAD/ee_temp_upload/varanasai.jpg
EXECUTED OK
[Mon Sep 29th, 2003 18:55:15]
msg 4624 | ftp
ALIVEWWW: IMAGEMAGICK COMMAND (watermark)
/usr/local/bin/composite -gravity Center watermarks/ee_logo_watermark.png UPLOAD/ee_temp_upload/varanasai.jpg UPLOAD/ee_temp_upload/varanasai.jpg
EXECUTED OK
[Mon Sep 29th, 2003 18:55:14]
msg 4623 | ftp
ALIVEWWW: IMAGEMAGICK COMMAND
/usr/local/bin/convert -size 900x600 UPLOAD/varanasai.jpg -resize 900x600! -unsharp 0.4x0.5+1+0.1 -quality 89 -profile '*' UPLOAD/ee_temp_upload/varanasai.jpg
: IMAGEMAGICK ERROR:
POSSIBLE REASON: SAFE MODE ON. Can not use ImageMagick commands when they are outside PHP safe mode exec dir.
[Mon Sep 29th, 2003 18:55:14]
and then without
msg 4506 | ftp
ALIVEWWW: IMAGEMAGICK COMMAND (resize+sharpen)
/usr/local/bin/convert -size 43x28 UPLOAD/varanasai.jpg -resize 43x28! -unsharp 0.4x0.7+2+0 -quality 67 UPLOAD/ee_temp_upload/varanasai.jpg
EXECUTED OK
[Mon Sep 29th, 2003 18:48:37]
msg 4486 | ftp
ALIVEWWW: IMAGEMAGICK COMMAND
/usr/local/bin/convert -size 900x600 UPLOAD/varanasai.jpg -resize 900x600! -unsharp 0.4x0.5+1+0.1 -quality 89 -profile '*' UPLOAD/ee_temp_upload/varanasai.jpg
: IMAGEMAGICK ERROR:
Running Serverinfo shows safemode is on. I have to confess to not understanding what safe mode is. I would have thought though that if this was the reason then ALL IMAGEMAGICK commands would fail.
Its probably something very simple, I just can't spot it
Alan
iamhives
29th of September 2003 (Mon), 13:28
This is way beyond my level of technical expertise but I did notice - Looks like the interaction of your profiles and the image size - the Imagemagick commands that fail are for 900x600 iamges and have -profile '*' in the command. Pekka's first post talks more about this type of thing. Unfortunately my upgrade has a few more basic problems than this at the moment - I'd be pleased to have this problem !
gillyworld
29th of September 2003 (Mon), 13:40
Quite right, I had left in the -profile '*' in the extra command field that I put in when I was trying to get it to work. I removed it from the thumbs but not from the big sizes, s panic over! I knew it would be simple, sometimes you can't see a problem for looking!!
I still don't fully undertand why it worked when the watermark was on though
Alan
Pekka
29th of September 2003 (Mon), 13:56
iamhives wrote:
This is way beyond my level of technical expertise but I did notice - Looks like the interaction of your profiles and the image size - the Imagemagick commands that fail are for 900x600 iamges and have -profile '*' in the command. Pekka's first post talks more about this type of thing. Unfortunately my upgrade has a few more basic problems than this at the moment - I'd be pleased to have this problem !
Paul,
I sent you the fixed dump and some instructions. I hope it's all well when those are applied.
puffyelms
29th of September 2003 (Mon), 23:20
Pekka wrote:
For Windows use / instead of \ slashes in path.
I've been busy and haven't had a chance to talk to my server admins about my imagmagick problem. but just to clearify did you mean what you said above or do you have the slashes reversed?
Tim
iceman
30th of September 2003 (Tue), 05:20
Hello Pekka,
I have moved all EE files to another host in hopes that the ImageMagick problems would not show up, however, the same problems of no test image occure.
So, It's nice that you are continuing to work these problems through.
Guess I'll have to enter images the old fashioned way for awhile. EE 1.5 is a tremendous program and once these few glitches are worked out, it will be the best there is available.
One other thing, on the UPLOAD page, I get a few extra lines of code, that comes in before the rest of the page is displayed:
any ideas,
Thanks,
Dennis
Pekka
30th of September 2003 (Tue), 06:54
puffyelms wrote:
Pekka wrote:
For Windows use / instead of \ slashes in path.
I've been busy and haven't had a chance to talk to my server admins about my imagmagick problem. but just to clearify did you mean what you said above or do you have the slashes reversed?
Tim
Always use / slashes. \ slashes are needed only on Windows and Windows will understand / too.
Pekka
30th of September 2003 (Tue), 06:57
iceman wrote:
Hello Pekka,
I have moved all EE files to another host in hopes that the ImageMagick problems would not show up, however, the same problems of no test image occure.
So, It's nice that you are continuing to work these problems through.
Guess I'll have to enter images the old fashioned way for awhile. EE 1.5 is a tremendous program and once these few glitches are worked out, it will be the best there is available.
One other thing, on the UPLOAD page, I get a few extra lines of code, that comes in before the rest of the page is displayed:
any ideas,
Thanks,
Dennis
You don't seem to have UPLOAD/ee_temp_upload folder at all, or it is not set to chmod 0777
Perhaps your ftp program did not transfer it because it was empty.
BTW you'll get mail from me about one another issue.
puffyelms
30th of September 2003 (Tue), 08:57
-profile '*' worked for me. single quotes had to be there.
i went through
imagemagick.php,
imagemagick_preview.php, and
graphicsenginetest.php
and replaced the -profile * with -profie '*'
is this what i should of done? or should i have just added it to extra command? if i am to add it to extra command, do i not check the remove profile checkbox?
BTW, thanks again for this great script. the resizing testpage was a great troubleshooting test.
Pekka
30th of September 2003 (Tue), 13:53
See http://photography-on-the.net/forum/showthread.php?t=17936
iceman
30th of September 2003 (Tue), 15:34
Pekka,
The updates worked fine, and the "profile" test is a nice addition. It is a great way to test for the proper profile setting.
One thing I have found as stated ealier in a post that even though the proper profile setting creates properly sized images on the test page, I have had to remove it to produce properly sized images from the UPLOAD page going into the file folders.
All of the generated images work fine using this method. (for me).
Nice job!
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.