[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SLUG] XV replacements
On Thu, 8 Jun 2000, Terry Collins wrote:
> I'm looking for an XV replacement.
> ...
> Basically I'm getting 24bit colour images (scanned photographs) and
> converting them to a series of sizes (320x200, 600x480, 800x600 &
> 1024x768) in 8 and 24 bit colour. Occassionally, a photograph is in
> vertical format and processing through XV losses the aspect through
> vertical size limitation.
Have you thought of using ImageMagic Terry? I use it to convert all the
pictures of my digital camera into more appropriate sizes. As they all
have the same starting size I do % reduction so that the aspect ratio
stays the same.
Here are the two appropriate lines from my script
convert -geometry 50%x50% -border 3x3 -bordercolor black $original $resized
convert -geometry 6.5%6.5% $original $thumb
This creates one image half the size with a black border around it and
also a small thumbnail.
Too see an example of the output goto
http://digit.rodos.net/fishing/20000513/
there are both landscape and portrait orientations. Clicking on the
tumbnail shows you the larger image.
I have found ImageMagic very powerful and the PerlMagic interface to it is
great as well. You could use that to get the size of the origianl image
and do all of the maths. Also scripting the whole thing makes it easy,
save all that clicking and you can do a batch at a time.
Rodos
--
rodos@nospam.haywood.org | ... the conclusion that the possibilities of computers
Camion Technology | are very interesting - if they could be made to be
+61 2 9873 5105 | more complicated by several orders of magnitude.
| [Richard Feynman 1959]
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text