[greenstone-users] Re: ImagePlug Questions

From Michael Dewsnip
DateFri, 11 Jul 2003 11:08:54 +1200
Subject [greenstone-users] Re: ImagePlug Questions
In-Reply-To (AFAC9B2BF1A8BF4886F5C0FDE428E90E0791EA0F-edumail2-education-tas-gov-au)
Hi Ben,

Yes, you're quite right, that is a problem (in version 2.40 only). I've
just made your fix to our code here, so the problem will be fixed for
future releases.

I'll CC this to the user's list, just in case other people have this
problem.

Thanks very much,

Michael

"Dwyer, Benjamin J" wrote:

> Thankyou for your help,
>
> I believe there may be an error in version 2.40 of Greenstone.
> The problem is in the ImagePlug file.
>
> I noticed in the examples of the OAI plugin demo at:
>
> http://www.nzdl.org/cgi-bin/library?e=p-000-00---0demooai--00-0-0-0promp
> t-10---4------0-1l--1-en-50---20-about---00001-001-1-0utfZz-8-0&a=d&cl=C
> L2
>
> that when i viewed the collection in IE version 6.0 for Windows, that
> all the thumbnail previews were squashed. This is because the height of
> the thumbnail has not been specified. It is easily fixed by editing the
> ImagePlug file, about half way down:
>
> $doc_obj->add_metadata ($section, "thumbicon", "<img
> src=/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[Thumb]
> width=[ThumbWidth] height=[ThumbHeight>");
>
> there is a missing ']' after 'height=[ThumbHeight
>
> Regards
>
> Ben Dwyer
>
> -----Original Message-----
> From: mdewsnip@cs.waikato.ac.nz [mailto:mdewsnip@cs.waikato.ac.nz]
> Sent: Thursday, 10 July 2003 3:53 PM
> To: Dwyer, Benjamin J
> Cc: greenstone-users@list.scms.waikato.ac.nz
> Subject: Re: ImagePlug Questions
>
> Hi Ben,
>
> In response to your questions:
>
> 1. The ImageMagick homepage is at http://www.imagemagick.org - you might
> like to have a look around here first. To download ImageMagick for
> Windows, try
> ftp://ftp.imagemagick.org/pub/ImageMagick/binaries/ImageMagick-5.5.7-Q8-
> windows-static.exe
>
> There are a few different Windows distributions available (differing in
> terms of being statically/dynamically linked, and maximum bit depth);
> the one shown above worked for me on a Windows 2000 machine.
>
> Once you've got it, just double-click to install. It is a standard
> Windows installer, and has some helpful text at the start. It doesn't
> matter where you install it. I recommend that you choose the "update
> executable search path" option, since this handles setting the PATH
> variable for you.
>
> Once it is finished installing, you should be all ready to go. Open up a
> DOS prompt and check everything is working properly by typing "convert"
> and "identify" (these are the two programs used by ImagePlug). If these
> programs don't run, you'll have to manually add their location to the
> PATH variable (let me know if you need help on this). If they work, you
> should be OK to import files using ImagePlug.
>
> 2. Images are no different from any other file in terms of assigning
> metadata via metadata.xml files. The Greenstone Librarian Interface
> (which comes with Greenstone 2.40) makes metadata assignment much
> easier, so I'd recommend you use this for assigning metadata to your
> images.
>
> Hope this helps.
>
> - Michael
>
> ---------------------------------------------
>
> Hi,
>
> Just have a few questions regarding the ImgePlug plug-in.
> 1) What is the procedure for downloading and setting up ImageMagick on a
> Windows (XP) machine? I've searched the greenstone archives for the
> answer but couldn't find it.
> 2) Is there an easy way to add searchable and general metadata to images
> using the ImagePlug plug-in?
>
> Regards,
>
> Ben Dwyer