[magick-users] how to resize an image based on its alignment (protrate or landscape)?

kdsfinger at gmail.com kdsfinger at gmail.com
Mon Feb 11 12:00:20 PST 2008


On Feb 11, 2008 1:48 PM, Scott <scotbicknel at cox.net> wrote:
>
> On Monday 11 February 2008 10:30:29 am kdsfinger at gmail.com wrote:
> > hi, there
> > I have a bunch of images mixed with portrate and landscape
> > alignment. Now I want to resize them so that the maxim side
> > (horizontal for landscape or vertical for portrate) is set to
> > a fixed number, say, 100. I know geometry or resize can do the
> > job if I know which side is set to the fixed number. How can I
> > write a bash script to do that? Thanks for your  help.
> > zl2k
>
> -resize 100 will let the software scale the image without you
> having to figure it out.
> --
> Scott
> Linux user #: 246504
>

I tried, it will always resize the horizontal side to the fixed
length, no matter how the alignment is. That's not what I need. I need
to resize the vertical side for the portrat and horizontal side for
the landscape. Thanks anyway.
zl2k


More information about the Magick-users mailing list