[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: making thumbnails



On Sat, 3 Mar 2001, Michael P. Soulier wrote:

>     Hey people. Is there an easy way to make thumbnails for large numbers of
> images? I'm thinking of Image Magick, but the mogrify -geometry argument
> doesn't maintain the aspect ratio.
>
>     Mike
>
> --
> Michael P. Soulier <msoulier@storm.ca>
> "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be  dangerous sitting under them as they fly overhead." -- RFC 1925
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>

Hi. I don't know the imagemagick solution, but there is another. A simple
shell script can do this one.

Convert your picture to ppm/pnm and then use pnmscale (with -xysize
option, see man page) which conserves aspect ratio. An then convert
pnm/ppm back to whichever format u want. See netpbm package.


RAccess
#geeks/irc.openprojects.net

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS GIT GP d- s+: a-- C+++ ULSB+++ P+ L+++ E+ W+++
N+ o K- w--- O- M-- V- PS+ PE Y+ PGP++ t++ 5-- X++
R* tv-- b+ DI+ D- G++ e h! r* !y+
------END GEEK CODE BLOCK------




Reply to: