Re: [greenstone-users] Image display problem

From Richard Managh
DateWed, 11 Jan 2006 10:54:17 +1300
Subject Re: [greenstone-users] Image display problem
In-Reply-To (20060110061346-72802-qmail-web32202-mail-mud-yahoo-com)
Hi Jasmine,

I've created a small collection of images, tried using the ImagePlug
plugin in this way, and it appears that the plugin creates "Screen"
metadata:

<Metadata name="Screen">screenview.jpg</Metadata>

giving you the location of an additional image it creates with the size
you specified with:

plugin ImagePlug -screenviewsize 400

The "screenviewsize" option creates a new image for each provided image
called screenview.jpg, but you need to specifically link to this image.
So for each image document, you need to change the relevant links in
format statements to use this new Screen metadata item provided, to link
to the new image created.

For example:

<img src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[Source]'>

would become

<img src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[Screen]'>

In addition, the ImagePlug creates a metadata item called screenicon,
which contains the html code for displaying the custom image.

Using [screenicon] produces something like:

<img src="/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[Screen]"
width=[ScreenWidth] height=[ScreenHeight]>

You can see this metadata item in the doc.xml for each image document.


Hope this is helpful,


Richard.
--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact&#64;dlconsulting.co.nz
www.dlconsulting.co.nz

Lenneth Valkyrie wrote:

> Hi Richard,
>
> I tried and it does not work. My image still appear to be very big
> after i click onto the thumbnail which was suppose to bring me to a
> page with metadata details and the image. The image appears still the
> same size even though after i set the configuration of the of the
> imageplug.
>
> Thank you.
>
> Regards,
> Jasmine
>
> */Richard Managh <richard@dlconsulting.co.nz>/* wrote:
>
> Hi Jasmine,
>
> Yes, you can use the "screenviewsize" option of ImagePlug to set the
> width of your imported images. The height of the images will be
> automatically determined in proportion to the width.
>
> You configure this option in the GLI from the Design tab, under
> "Document Plugins", choosing ImagePlug and clicking the configure
> button, or you can edit your collection configuration file, and
> change
> the line which would be something like
>
> plugin ImagePlug
>
> to
>
> plugin ImagePlug -screenviewsize 400
>
> for 400 pixel width images.
>
> Then rebuild the collection.
>
> Hope this helps,
>
>
> Richard.
> --
> DL Consulting
> Greenstone Digital Library and Digitisation Specialists
> contact@dlconsulting.co.nz
> www.dlconsulting.co.nz
>
>
> Lenneth Valkyrie wrote:
>
> > Hi Richard,
> >
> > Thank you so much, i finally understand what is the problem now
> and my
> > image appeared ^_^. I have a another question, is it possible to
> > resize the image using greenstone instead of having to use other
> image
> > editing software to resize the image?
> >
> > Regards,
> > Jasmine
> >
> > */Richard Managh /* wrote:
> >
> > Hi Jasmine,
> >
> > I would suggest that instead of the following in the top of your
> > DocumentText format statement:
> >
> > format DocumentText "
> >
> >
> src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[sc.AccessionNumber]'>
> >
> > You substitute [Source] for [sc.AccessionNumber]
> >
> > Which would give you:
> >
> > format DocumentText "
> >
> >
> > src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[Source]'>
> >
> > This is because in your doc.xml file [sc.AccessionNumber] in the
> > example
> > you sent, would evaluate to "49" when what you probably want is
> > "49.jpg"
> >
> > So, for your image, instead of: **
> >
> >
> >
> src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[sc.AccessionNumber]'>
> >
> > Which gives:
> > src='/gsdl/collect/SCCCI/index/assoc/*HASH0b7e.dir*/*49*'>
> >
> >
> > You would have:
> > src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[Source]'>
> >
> > Which gives:
> > src='/gsdl/collect/SCCCI/index/assoc/*HASH0b7e.dir*/*49.jpg*'>
> >
> >
> > Hope this helps,
> >
> >
> > Richard.
> > --
> > DL Consulting
> > Greenstone Digital Library and Digitisation Specialists
> > contact@dlconsulting.co.nz
> > www.dlconsulting.co.nz
> >
> >
> >
> > Jasmine wrote:
> >
> > > Hi,
> > > I had been figuring out how to solve the image display problem for
> > > days and still couldn't find where the fault lies. My image still
> > > could not appear. I looked into my doc.xml file and this is how it
> > > looks like
> > >
> > > * * *importGeneral Affairs
> > > CommitteeBefore 1982Celebrations, Ceremonies &
> > > Festivals49.jpg*
> > > * * *indexed_doc*
> > > * * *ImagePlug*
> > > * * *49.jpg*
> > > * * *49.jpg*
> > > * * *JPEG*
> > > * * *unknown*
> > > * * *JPEG*
> > > * * *1052*
> > > * * *1672*
> > > * * *unknown*
> > > * * *
> > >
> >
> href="/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[sc.AccessionNumber]">*
> >
> > >
> > > * * **
> > > * * *
> > >
> >
> src="/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[sc.AccessionNumber]"
> >
> > > width=100>*
> > > * * *gif*
> > > * * *thumbnail.gif*
> > > * * *
> > > src="/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[Thumb]"
> > > width=[ThumbWidth] height=[ThumbHeight]>*
> > > * * *63*
> > > * * *100*
> > > * * *General Affairs Committee*
> > > * * *19640920*
> > > * * *Temasek Polytechnic, Information
> > > Management student*
> > > * * *49*
> > > * * *SCCCI (General Affairs
> > > Committee)*
> > > * * *General Affairs Committee-Before
> > > 1982-Celebrations, Ceremonies & Festivals*
> > > * * *NA*
> > > * * *49*
> > > * * *HASH0b7e3412832ce54061a81e*
> > > * * *HASH0b7e.dir*
> > > * * *49.jpg:image/JPEG:*
> > > * *
> > > name="*gsdlassocfile*">*thumbnail.gif:image/gif:*
> > > * *
> > > * * *This document has no text.*
> > >
> > >
> > > and this is what my collect.cfg file look like for the format
> > feature:
> > >
> > > format DateList " [link][icon][/link]
> > >
> >
> [highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight]
> >
> > > [ex.Date] "
> > >
> > > format HList "[link][highlight][ex.Title][/highlight][/link]"
> > > format DocumentButtons ""
> > >
> > > format VList " [link][thumbicon][/link]
> > > *Event Title: *[sc.Title]
> > *Date of Event:
> > > *[sc.Date]
> > *Description: *[sc.Description]
> > > "
> > > format DocumentHeading ""
> > >
> > > format DocumentText "
> >
> >
> > >
> >
> src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[sc.AccessionNumber]'>
> > >
> > *Event Title: *[sc.Title]
> > >
> > *Date of Event: *[sc.Date]
> > *Description:
> > > *[sc.Description]
> > >
> > *Event Organiser: *[sc.Organiser]
> > >
> > *Notes: *[sc.Notes]
> >
> > "
> > >
> > >
> > > Thank you, i will be looking forward to the reply.
> > >
> > > Best Regards,
> > > Jasmine
> > >
> > >
> > >
> > >
>