[greenstone-users] using ThumbnailSize in ImagePlugin to control width rather than height

From William Mann
DateFri Dec 3 05:03:20 2010
Subject [greenstone-users] using ThumbnailSize in ImagePlugin to control width rather than height
In-Reply-To (45751448A71EAC43962D93D2E8FD46071631E83B82-GCC-EXCHANGE07-galwaycoco-ie)
Hi John,

Katherine gave me this solution as I had the same problem:

The easiest way to achieve this is to modify the plugin.

The plugin to change is ImageConverter

look for the create_screenview method, and the line
my $scale_option = "-geometry $screenviewsize" . "x$screenviewsize";

Change to

#my $scale_option = "-geometry $screenviewsize" . "x$screenviewsize";
my $scale_option = "-geometry $screenviewsize";

If you modify the plugin in perllib/plugins, then the changes will affect
every collection and every image coversion to screenview.

If you only want the changes for one particular collection, then copy the
plugin into collect/yourcollection/perllib/plugins/. I haven't tried this,
so I am not sure that the way greenstone works out which plugins to load
will work when the collection specific one is not a top level plugin, but
an inherited one.
If you are doing it this way and it doesn't seem to be working (ie it
works if you modify the main plugin but not if you copy it into the
collection,) then we will probably need to do a bit of fiddling to get it
to work. Let me know and I can help with that.


Hope this helps.

--
Rag. William Mann
Comune di Belluno
Servizio Sistemi Informativi
Piazza Castello, 14
32100 Belluno
Tel. 0437-913156
e-mail: wtmann@comune.belluno.it

Il 02/12/2010 15:20, John Fitzgibbon ha scritto:
>
> Hi,
>
> Within ImagePlugin, I have entered a value in ThumbnailSize. This is
> controlling the height of the image and allows the width to adjust
> automatically. How can I get it to control the image's width and allow
> height to adjust automatically.
>
> I would appreciate any assistance.
>
> Regards,
>
> John
>
> John Fitzgibbon
>
> w: www.galwaylibrary.ie
>
> e: info@galwaylibrary.ie
>
> p: 00 353 91 562471
>
> f: 00 353 91 565039
>
> ------------------------------------------------------------------------
>
> This e-mail message has been scanned for content and cleared by
> MailMarshal Hosted at Galway County Council
>
> T□ an teachtaireacht r□omhphoist seo scan□ilte d'□bhar agus glanta ag
> MailMarshal at□ □st□lta i gComhairle Chontae na Gaillimhe.
>
> Correspondance is welcome in Irish or in English.
>
> T□ m□le f□ilte roimh chomhfhreagras i nGaeilge n□ i mB□arla.
>
> T□ eolas at□ pr□obh□ideach agus r□nda sa r□omhphost seo agus aon iat□n
> a ghabhann leis agus is leis an duine/na daoine sin amh□in a bhfuil
> siad seolta chucu a bhaineann siad. Mura seola□ th□, n□l t□ □daraithe
> an r□omhphost n□ aon iat□n a ghabhann leis a l□amh, a ch□ip□il n□ a
> □s□id. M□ t□ an r□omhphost seo faighte agat tr□ dhearmad, cuir an
> seolt□ir ar an eolas thr□ aischur r□omhphoist agus scrios ansin □ le
> do thoil.
>
> This e-mail and any attachment contains information which is private
> and confidential and is intended for the addressee only. If you are
> not an addressee, you are not authorised to read, copy or use the
> e-mail or any attachment. If you have received this e-mail in error,
> please notify the sender by return e-mail and then destroy it.
>
> If you need this email in an alternative format please contact the sender
>
> M□ t□ an r□omhphost seo ag teast□il uait i bhform□id eile d□an
> teagmh□il leis an duine a sheol chugat □
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20101202/5b4f7d7c/attachment.html