[prev in list] [next in list] [prev in thread] [next in thread] 

List:       imagemagick-user
Subject:    Re: [magick-users] resizing image problems
From:       "Kevin Oberman" <oberman () es ! net>
Date:       2002-02-28 0:40:26
[Download RAW message or body]

> Date: Wed, 27 Feb 2002 15:53:21 -0800 (PST)
> From: Glenn Randers-Pehrson <glennrp@yahoo.com>
> 
> 
> --- Kevin Oberman <oberman@es.net> wrote:
> > > Date: Wed, 27 Feb 2002 15:07:39 -0500
> > > From: Glenn Randers-Pehrson <glennrp@comcast.net>
> 
> > > Only one "!" is necessary; it means the entire sampling
> > geometry is "exact".
> > > Without any "!" the image is scaled to fit inside a 100x200
> > rectangle
> > > while maintaining the original aspect ratio.
> > 
> > Yes, but 100!x200! is required to get the image sized to the
> > exact
> > size without maintaining the aspect ratio. For charts and the
> > like,
> > this can be very useful.
> 
> Only one "!" is necessary.  Read the GetGeometry code, in
> utility.c.  If there is a "!" after any number in the geometry
> string, the AspectValue flag is set.  The documentation
> says to "append an exclamation point to the geometry".
> 
> Similarly, if there is a "%" anywhere in the string, the
> PercentValue flag is set, which causes width and height
> both to be read as percent values.
> 
> The x and y offsets are evidently unaffected by either "!"
> (they are always exact) or by "%" (they are always measured
> in pixels).
> 
> Do you have an example that doesn't work with only one
> exclamation point?

You are, of course, correct. Just brain-fade on my part.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634
_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic