Re: Can't import images?

From Gordon Paynter
DateThu, 21 Feb 2002 16:16:03 -0800
Subject Re: Can't import images?
In-Reply-To (200202211237-NAA13892-geri-narc-com)
On Thursday 21 February 2002 04:37, wrote:

[ImagePlug doesn't work]

> plugin ZIPPlug
> plugin GAPlug
> plugin TEXTPlug
> plugin HTMLPlug
> plugin EMAILPlug
> plugin PDFPlug
> plugin RTFPlug
> plugin WordPlug
> plugin PSPlug
> plugin ArcPlug
> plugin ImagePlug
> plugin RecPlug

Your problem is that HTMLPlug (by default) "blocks" image files.

Greenstone plugins decide what files to look at with a "process
expression" but can also specify that certain files should be ignored
using a "block expression" or block_exp. This is so that if you
import a collection of HTML documents with HTMLPlug, for example, the
GIF and JPEG images will be ignored because you're really only
interestedin HTML files.

In your case, the HTMLPlug plugin appears before the Image PlugIn.
When a new JPEG file is found it is passed first to ZIPPlug, then
GAPlug, then TEXTPlug, all of which ignore it. It is then passed to
HTMLPlug, which blocks it, and it never gets to any of the other
plugins, like ImagePlug.

To fix this, you should remove the plugins you don;t need from the
plugin list. If you're only making a collection of images, then a
collect.cfg like this is probably appropriate:

plugin GAPlug
plugin ImagePlug
plugin ArcPlug
plugin RecPlug

Note also that after an import, the message that says how many
documents are imported is usually wrong when you use ImagePlug.
I don't know why.