Actually, I think I found it. ImageMagic has a perlmodule so i can
just keep it native. It'll give me the hight and width, then I can
set the height and width, then let me write it out that way.
Robert
Thus spake Mandrake (">mandrake@mandrake.net):
> On Wed, Mar 01, 2000 at 09:48:56AM -0700, Robert L. Harris wrote:
> >
> >
> > I'm trying to write a script that will make thumbnails of my images. One
> > problem is I want to keep the aspect ratio, so I need to get the current
> > ratio, and do some math before converting the thumbnail. Does anyone
> > know a utility that I can run "jpginfo " that will give me the
> > current height and width, etc which I an then use for my calculations?
> > I'm looking at cjpeg, djpeg, etc and I'm not seeing any options that
> > will give me that info.
>
> imagemagick is your friend. with imagemagick comes a little utility called
> "identify"
> this should do the trick for you.
> for simple conversions you can probably use "convert" which also comes with
> imagemagick
>
> --
> (\) Mandrake (Geoff Harrison) (/) http://mandrake.net (\)
> (|) Senior Software Engineer VA Linux Labs (|) http://valinux.com (|)
> (/) Co-Author Enlightenment Window Manager (\) http://enlightenment.org (/)
> (|) Linux.com Advisory Board Member (|) http://linux.com (|)
:wq!
---------------------------------------------------------------------------
Robert L. Harris | Low quality in a product happens.
Senior System Engineer | That doesn't mean it's right and
at RnD Consulting | definitely doesn't mean it should
\_ be accepted. Require quality.
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.