BUG: ImageMagick, could not be found or is malfuncioning

tjerk

Joined: 2004-07-08
Posts: 1
Posted: Thu, 2004-07-08 12:04

I've installed GalleryRemote 1.3.2 and there is a bug in it on Windows XP using the default bundled JRE.

When i start GR i get the following message:

On optional part of GAllery Remote, ImageMagick, could not be found or is malfuncioning. Gallery Remote will not be albe to resize images before uploading them, and loading thumbnails and......

The message contains a link to http://gallery.menalto.com/modules.php?op=modload&name=GalleryDocs&file=index&page=gallery-remote.problems.php
so i tried to install the full version of ImageMagick. Then i edited the imagemagick\im.properties file so that it pointed to the full install path of ImageMagick

but

The problem still exists!!!

The are more topics about this bug but none of them give a solution. Thats why i call it a Bug. Please fix it

 
joel558
joel558's picture

Joined: 2003-04-10
Posts: 93
Posted: Thu, 2004-07-08 18:02

what exactly are you setting the path as? it can't have any spaces and has to use / instead of \. or if you use \, you need to escape it using 2 \s...

for example, on my computer, imagemagick is located in
C:\program files\imagemagick
so i have to set my path as:
im.convertPath=C:/Progra~1/ImageMagick/convert.exe

or i believe it could also be
im.convertPath=C:\\Progra~1\\ImageMagick\\convert.exe

 
zbullock

Joined: 2004-03-26
Posts: 8
Posted: Sat, 2004-08-07 21:55

This is my exact issue, and I have tried all variations of file names, formats, etc... Nothing works... I have found that when a seemingly correct path is saved in the im.properties file, when I load up GR it waits until I add photos to give me the ImageMagick Error... All other times, it gives me the error right away... I know this is telling me something, I'm just not sure what...

PLEASE HELP :)

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sun, 2004-08-08 19:20

Take a look at the GR log, and try to execute in a console window the command line that GR calls. That should give us an idea of what's going on.

FAQ Gallery Remote:3

 
zbullock

Joined: 2004-03-26
Posts: 8
Posted: Sun, 2004-08-08 21:20

I believe this is the log file???

#Sun Aug 08 17:07:35 PDT 2004
albumPictureDividerLocation=180
alias.0=Momentary Blindness
alias.1=Andrea Hanratty
captionStripExtension=false
exifAutorotate=true
filedialogPath=\\\\Bullock-1\\external hard drive\\Zach's Folder\\zach photo\\MOMENTARY BLINDNESS\\Lounge 125\\8-6-04
glGalleryUrl.0=http\://example.com/path/to/gallery/$GALLERYFILE$
glGalleryUrl.1=http\://example.com/path/to/gallery/$GALLERYFILE$
glLoginUrl.0=http\://example.com/path/to/geeklog/public_html/users.php?loginname\=$USERNAME$&passwd\=$PASSWORD$
glLoginUrl.1=http\://example.com/path/to/geeklog/public_html/users.php?loginname\=$USERNAME$&passwd\=$PASSWORD$
htmlEscapeCaptions=true
inspectorDividerLocation=450
loadLastMRU=false
logLevel=3
mainBounds=491,22,700,650
mruCount=4
password.0=YmxpbmRpbmc\=
password.1=aGFucmF0dHk3Nzc\=
phpnGalleryUrl.0=http\://example.com/modules.php?name\=gallery&include\=$GALLERYFILE$
phpnGalleryUrl.1=http\://example.com/modules.php?name\=gallery&include\=$GALLERYFILE$
phpnLoginUrl.0=http\://example.com/modules.php?name\=Your_Account&op\=login&username\=$USERNAME$&user_password\=$PASSWORD$
phpnLoginUrl.1=http\://example.com/modules.php?name\=Your_Account&op\=login&username\=$USERNAME$&user_password\=$PASSWORD$
pnGalleryUrl.0=http\://example.com/modules.php?op\=modload&name\=gallery&file\=index&include\=$GALLERYFILE$
pnGalleryUrl.1=http\://example.com/modules.php?op\=modload&name\=gallery&file\=index&include\=$GALLERYFILE$
pnLoginUrl.0=http\://example.com/user.php?uname\=$USERNAME$&pass\=$PASSWORD$&module\=NS-User&op\=login
pnLoginUrl.1=http\://example.com/user.php?uname\=$USERNAME$&pass\=$PASSWORD$&module\=NS-User&op\=login
previewBounds=700,0,500,650
proxyHost=proxy.host.com
proxyPassword=
proxyPort=80
proxyUsername=
resizeBeforeUpload=true
resizeTo1=0
savePasswords=true
setCaptionsNone=false
setCaptionsWithFilenames=false
setCaptionsWithMetadataComment=false
showPath=true
showPreview=false
showThumbnails=true
slideshowCaptionLocation=30
slideshowDelay=7
slideshowExtraLocation=24
slideshowLowRez=true
slideshowNoStretch=false
slideshowPreloadAll=false
slideshowProgressLocation=12
slideshowRandom=false
slideshowUrlLocation=0
suppressWarningJava=true
thumbnailSize=64,64
type.0=Standalone
type.1=Standalone
updateCheck=true
updateCheckBeta=false
url.0=http\://www.momentaryblindness.com/gallery/
url.1=http\://www.andreahanratty.com/gallery/
useJavaResize=true
useProxy=false

"I removed the usernames..."

 
zbullock

Joined: 2004-03-26
Posts: 8
Posted: Sun, 2004-08-08 21:28

This is the error I get...
I recieve the error not when i startup GR, but when I "add pictures"... The thumnails load very slowly...

An optional part of gallery remote, ImageMagick, could not be found or is malfunctioning. Gallery Remote will not be able to resize images before uploading them, and loading thumbnailsand previews will be much slower. you can find out how to fix this by going to this page: etc...

 
optionzz

Joined: 2005-07-11
Posts: 1
Posted: Wed, 2005-09-28 00:17

I'm a remote user of gallery...and get the same error everyone is reporting: "An optional part of Gallery Remote, ImageMagick, could not be found or is malfunctioning. Gallery Remote will not be able to resize images before uploading them...

I'm running IE on a Windows platform. I installed ImageMagick, did the test which passed, but still get the message. I believe it is something simple like telling the Jave program where to find the ImageMagick DLL's but nothing I've found tells me how/where to do that.

Thanks for any help.

Pete

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2005-10-04 12:49

Does this help? http://codex.gallery2.org/index.php/Gallery_Remote_Bundled

--
Gallery Remote developer

 
greg hill

Joined: 2005-10-13
Posts: 1
Posted: Thu, 2005-10-13 03:11

I installed the (win32) Gallery Remote Bundled setup which includes the jpegtran and imagemagick binaries but still got the same errors mentioned here. This is how I solved the problem:

- browse to your gallery remote directory, then to the imagemagick folder. Edit im.properties to contain the complete path (ie c:/progra~1/galler~1/imagem~1/win32/convert.exe) to the binary. Save the file in the Gallery Remote main directory (not the imagemagick subdirectory).

- browse to the jpegtran folder. Repeat the steps above on jpegtran.properties, but change the path to point at the jpegtran binary.

Now when I open Gallery Remote I don't get the error message and thumbnails are produced much more quickly.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Fri, 2005-10-14 00:26

Thanks, I added your instructions to the Codex: http://codex.gallery2.org/index.php/Gallery_Remote_Bundled#Windows

--
Gallery Remote developer

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Sat, 2005-10-15 08:51

Have tried all the recommendations above in a Win2K box. Still cannot get Imagemagick to work. Incl reinstalling the latest GR and the several recommendations in the http://codex.gallery2.org/index.php/Gallery_Remote_Bundled link. Have searched the site for anything else. No success... help anyone?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sat, 2005-10-15 12:52

drhiii you can start by attaching a GR log...

--
Gallery Remote developer

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Wed, 2005-10-19 23:59

Yes, you are correct about the debug file. I located the problem, I believe, but cannot find the "call" that causes the error.... It states it is failing on the parameter "box" below. I get this on two separate systems. So it is finding Imagemagick's convert.eve proggie, but this is the error.

Help anyone? tx

83951|TRACE|ThumbCache|Calling Start
84001|TRACE|StatusBar |level: 2 - Loading thumbnails - 0
84001|TRACE|ImageUtils|Executing [convert.exe, -filter, Box, D:\WHJackson\IMG0
859_jackson1b_w.sized.jpg, -resize, 100x100, +profile, *, C:\DOCUME~1\drh\LOC
LS~1\Temp\thumbs\thumb-1544926979.gif]
85162|TRACE|ImageUtils|Err: Invalid Parameter - Box
85162|TRACE|ImageUtils|Returned with value 4
85162|CRITI|ImageUtils|ImageMagick doesn't seem to be working. Disabling
230431|TRACE|ImageUtils|Time: 146430 - Avg: 146430
230431|TRACE|ThumbCache|update progress 1/1
230441|TRACE|StatusBar |level: 2 - Loading thumbnails - 1
230441|TRACE|StatusBar |level: 0 - Thumbnails loaded - 0

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Thu, 2005-10-20 00:10

Correction... I found the config file, made a change to the 'default' and same result. If finds Imagemagick, but does not like the "filter". Will keep fiddling but any help to shed light on this would be appreciated....

83951|TRACE|ThumbCache|Calling Start
84001|TRACE|StatusBar |level: 2 - Loading thumbnails - 0
84001|TRACE|ImageUtils|Executing [convert.exe, -filter, Box, D:\WHJackson\IMG0
859_jackson1b_w.sized.jpg, -resize, 100x100, +profile, *, C:\DOCUME~1\drh\LOC
LS~1\Temp\thumbs\thumb-1544926979.gif]
85162|TRACE|ImageUtils|Err: Invalid Parameter - Box
85162|TRACE|ImageUtils|Returned with value 4
85162|CRITI|ImageUtils|ImageMagick doesn't seem to be working. Disabling
230431|TRACE|ImageUtils|Time: 146430 - Avg: 146430
230431|TRACE|ThumbCache|update progress 1/1
230441|TRACE|StatusBar |level: 2 - Loading thumbnails - 1
230441|TRACE|StatusBar |level: 0 - Thumbnails loaded - 0

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Thu, 2005-10-20 00:30

Update... I cannot explain why it began working but GR worked *after* I changed the path to convert.exe to the full path (i.e. c:/progra~1/galler~1/imagem~1/win32/convert.exe). The reason this is perplexing is I'd followed these instructions above and performed exactly the same thing a few days ago, repeatedly, and it did not work. What is different is the change to the filter call in the im.properties as well. I will test this on a different machine and see if I can replicate this success and report back.

Scratching my head....

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Thu, 2005-10-20 01:38

Ok, final post. Changed machine, it failed. Below is the log file. Made all the appropriate changes. I finally started surfacing some reports on this being an issue more to do with convert.exe than anything else. Will root around a bit more, but this appears to be a problem that doesn't have a good solution yet. Reports going back to 2002 on it from what I see. Works on one machine, fails on another... go figure.

45926|TRACE|ThumbCache|Calling Start
45926|TRACE|StatusBar |level: 2 - Loading thumbnails - 0
45956|TRACE|ImageUtils|Executing [c:/progra~1/galler~1/imagem~1/win32/convert.
xe, -filter, Lanczos, C:\PicsOut\PaoniaColor\2\IMG19181.jpg, -resize, 80x80, +p
ofile, *, C:\DOCUME~1\drh\LOCALS~1\Temp\thumbs\thumb-1607842668.gif]
46718|TRACE|ImageUtils|Err: convert.exe: Missing an image file name.
46718|TRACE|ImageUtils|Returned with value 1
46718|CRITI|ImageUtils|ImageMagick doesn't seem to be working. Disabling

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Thu, 2005-10-20 03:13

Ok, final final post, and mebbe someone else will find this of value....

Installed GR v 1.5 and the upgrade ZIP file. Edited the im.properties in the ../imagemagick directory and added the full path to convert.exe (i.e. c:/progra~1/galler~1/imagem~1/win32/convert.exe). It worked on one system and failed on another.

Went to www.imagemagick.org and downloaded the current DLL version of Imagemagick for Windoze (ImageMagick-6.2.5-2-Q16-windows-dll.exe). I installed it into the ../imagemagick directory in GR though you can install it anywhere, re-edited im.properties to point to the new convert.exe location, now works like a champ.