If Image Magic isn't working, you will see just the plain old "generic" icons for each photo. If this is happening, here are a few things to try:
- Confirm that the "imagemagick" config item (in album.cfg) contains the full path to the directory that contains the "convert" binary. Examples:
imagemagick=c:/program files/imagemagickimagemagick=/usr/local/bin- Make sure that the "convert" binary can be executed by the web server. On UNIX systems, that's typically "chmod 755 convert".
- [url=http://dev.bobbitt.ca/forums/index.php/topic,32.0.html]turn on debugging[/url], and search the output for "imagemagick". That should show you a line like this:
XXXX: IMAGEMAGICK: "/usr/local/bin/convert" -quality 25 -resize 100x75 "/home/bobbitt/www/album/stuff/photo.JPG" "/home/bobbitt/www/album/stuff/thmb_photo.JPG"Right below that, you'll see a line that starts like this:
XXXX: IMAGEMAGICK RETURNED: [Error message]If there is a problem running ImageMagic, it will be displayed here, and you'll have to resolve that problem before ImageMagick will work properly for you.
- If you have shell/telnet access, try running convert, and note the "usage" instructions. If "resize" is not in there, you're version of ImageMagick is too old.
- Notes from jimhopf: I poked around the web for countless hours and found:
http://www.dylanbeattie.net/magick/ �this site is about making (unix created but ported to windows) Imagemagic & Perlmagick to actually run on windows. �
They did had a link to download a version of imagemagick (for W2K) that I suspect is dfferent from the one I got from imagemagic.org
http://www.dylanbeattie.net/magick/download/latest/ImageMagick.zip � � �extract it with -d (use folder names for you winzip people) Rename visualmagick folder to imagemagick
I think there was something different about this version, anyway after setting my environment variables (magic_home=[c:\imagemagick] AND adding that same path to my PATH statement (path=c:\imagemagick;.....) and rebooted, �it worked perfectly. �You can read all about this on the dylanbeattie web site.
Before all this, I had the path statements entered the same way (99%sure at least) �but I was useing the image magick w2k binarys from imagemagick.org (you have to get it from their ftp site)
It now magicly creates thumbnails!
- Notes from Raceit: I finally got my install of Album.pl to work with ImageMagick with help from lots of people here. �Below is my configuration and other tid-bits of usefull info. �This isn't the only way to set up the two programs to work, but rather how mine is setup. �For people new to this (like I was :) ) it may be an easy starting point.
First this is running on a Windows 2000 Server with IIS 5.0 SP3. �Of course Album.pl 5.7. �I used ActivePerl-5.6.1.633-MSWin32-x86.msi for my Perl program. �ActivePerl needs to be build 633 to be able to work with ImageMagick correctly. �The ImageMagick file is ImageMagick-5.4.8-win2k.exe. �
The ActivePerl was installed into the c:\pearl location. �ImageMagick was installed into c:\imagemagick. �The ActivePerl program will need to be installed first if it isn't already. �And then ImageMagick. �The ImageMagick install will copy a handfull of files into one of the Perl folders.
Now onto how my album.cfg is configured. �Going down the list of things that may or may not be related to this issue. (I haven't had time to mess with the config all that much to see the different effects of different settings.)
----------------------------------------
Path to ImageMagick = c:/imagemagick
pic_resize = (left blank)
always_pic_resize = 0
small_width = 320
small_height = (left blank)
medium_width = 640
medium_height = (left blank)
large_width = 800
large_height = (left blank)
concurrent_uploads = 1 (Now you can set this to more, but at this point album.pl will cause the same thumbnail to be generated for all uploads until each image is viewed in it's own album before being viewed in the most recent uploaded.)
thumbprefix = thmb_
constrain_thumbs = 1
thumb_height = 100
thumb_width = 100
----------------------------------------
I did have to set my c:\imagemagick folder allow "modify" access to the built in accounts of "Internet Guest Account" and the "Launch IIS Process Account". �I don't think I need that last one on there, but like with other things in this install I have yet to actually take time and experiment with it. �Now someone esle that's more familiar with 2000 security may want to see how much that can be tightened down.
For the users benifit and proper functionality I went though every page in all of my albums so it can go ahead and make the thumbnails or the first time. �Otherwise it will take too long for a visitor to wait. �Once you have gone through all of the albums you can then go to your most recent uploaded page and look there to make sure you're in business. �
It apears that the most recent uploaded fucntion has an issue that gives duplicate thumbnails for different images. �But again if you go through and make Album.pl/ImageMagick generate all the first time thumbnails it shouldn't be a problem. �
However there is still a problem with Album.pl when you upload more then one image at a time before viewing it. �And that's a whole other thread altogether. :)
If for some reason you end up getting all of the same thumbnails you can always delete the bad thumbnails. �For me they were always located in the respective album for whatever image it was generated for. �Then you can try again going in the correct order of going though each album and then going to the most recent uploaded files.
That's pretty much it. �Hopefully that will work for most everybody. �Like I said at least it's a starting point for people like me that just arn't up to par on all of these porgrams.
Here are the links to the files that I used.
ActivePerl -
http://www.activestate.com/Products/Download/Register.plex?id=ActivePerl �- Just put a bogus email address and it will work fine.
ImageMagick -
http://janpel.d2g.com/Programs/ImageMagick-5.4.8-win2k.exe-Steve
(edit) �I almost forgot to add. �In Windows 2000 there is a "feature" called Windows File Protection. �So when you go to delete or raname the convert.exe (or other system files) that is included with Windows it will reapear shortly on it's own. �That's Windows doing that. �To learn more about the WFP feature be sure to check out this link for a knowledge base aritcle.
http://support.microsoft.com/default.aspx?scid=kb;en-us;q222193To disable that (which I had to do so the real convert.exe would work) then you'll want to check out this knowledge base aritle here. �
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q222473- From Systematic: I have just had to change the system calls to ImageMagick identify.exe and convert.exe to get them to work on an NT box. Is this a known issue? Thought I'd post here in case others are having similar problems.
The problem was that quotes in the systema call string were not being parsed - remove the \" s and it all works beautifully!
There are 2 system calls (3 lines of code to change for my setup) eg
$system_call.=" \"$object\" \"$image_thumb\"";becomes:
$system_call.=" $object $image_thumb";ImageMagick install tip on NT.
Download ImageMagick-i686-pc-windows.exe. I couldn't run the ImageMagick install exe on the remote box so ran it on a local PC then just created an ImageMagick directory with \modules and \config subdirectories, then copied all files from these 3 directories on my local machine to the new directories on the server. Next add the registry HKLM\Software\ImageMagick keys as described in the installation help files. I use Cgicommand.pl to run commandline stuff from a web browser (then delete it ffom the server!) and reg.exe to fiddle with the registry (be careful)
[/list]
If that still doesn't fix it, feel free to post the details of your problem in the support forum!