Verakso on wrote...
| I have been returning to this post, trying to solve anonther issue
|
| On 11/7/05, Anthony Thyssen <[EMAIL PROTECTED]> wrote:
|
| > The section refered to by Scott Spearman,
| > Resizing to Fill a Given Space
| > http://www.cit.gu.edu.au/~anthony/graphics/imagick6/resize/#space_fill
| >
| > Is more about resizing and cropping an image to fit the specific size
| > without leaving any blank or transparent space in that size. That is
| > you want to resize it fit the minimal dimension, rather that the maximum
| > to the size specified, the crop what did not fit.
|
| I wonder what I might be doing wrong, but my images are cropped, and
| the result is not what i had hoped for,
|
| The task is to genereate a bunch of jpg files i the size 200x180. I
| had hoped, that it would be a somewhat straight task, using the Scot
| Spearman space_fill method, but I can only get i to work on squares.
|
| Perhaps i have misundertood what is described at this page, but isn't
| the examples with -crop to make the image fit exactly regarding its
| hight or width?
|
| convert filein.tif -resize 400x -resize "x360<" -resize 50%
| -colorspace RGB -gravity center -crop 200x180+0+0 +repage fileout.jpg
|
NO
It is to fit the image into the box as large as posible (preserving the
aspect ratio) then crop of the parts which did not fit!
To just fit into a box without cropping use...
convert filein.tif -resize 200x180 fileout.jpg
To ignore the aspect ratio (ie don't preserve circles as circle) use
this
convert filein.tif -resize 200x180\! fileout.jpg
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
This is one big web site! --- Hercules, "Web of Desire"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users