Re: Cover Images

From Stefan Boddie
DateMon, 30 Sep 2002 11:04:50 +1200
Subject Re: Cover Images
In-Reply-To (000901c264f2$9b407070$0200a8c0-mrdsseattle)
> I am scanning in some articles and out-of-print books. I want to scan
> the cover and then associate that cover image with the document.
> I see in the Demo collection that that is possible. I see that they have
> put the cover.jpg file in the index in the
> collect<collname>indexassoc<hash>.dir folder.
> Is there a more automatic way to get cover images associated with the
> document or is this a manual process?
> Jim Trott
> Knowledge Management Director
> Millennium Relief and Development Services
> email:

Hi Jim,

To do this you should use the -cover_image plugin option. If this option is
set Greenstone will look for a jpeg image with the same filename as the
source document and use it as a cover image.

For example, if you have a small collection containing a single html
document called book1.html you'd save the cover image as book1.jpg (in the
same directory as book1.html). You'd then specify your HTMLPlug (in the
collect.cfg file) as follows:

plugin HTMLPlug -cover_image

You'll also need to add the following line to your collect.cfg file so the
runtime system knows to display the cover image.

format DocumentImages true