Corrected replay -- Added +repage to remove virtual canvas info -crop leaves in image for 'expert' use.
Al Bogner on wrote... | I use ImageMagick 6.4.0 04/14/08 Q16 (Suse Linux 10.3) and would like to do | the following: | | | There is an image (rectangle) with a ratio of 2:1 in landscape format. | | How can I split it in 2 squares? | convert image.png -crop 50%x100% +repage image_%d.png This will spilt it into two 'tiles' and save the result as two files image_0.png and image_1.png | IHow can I crop the rectangular to a square by cropping the left and right | side? | If you are sure it is a 2:1 ratio rectangle. convert image.png -gravity center -crop 50%x100%+0+0 +repage image_center.png The +0+0 turns of tiled crop. | I can imagine to do this by calcualting the size, but is there an easier way? | See IM Examples, Cutting and Bordering http://imagemagick.org/Usage/crop/ Look at percentage crops, and tiled crops. Better still look at all the examples given. Anthony Thyssen ( Graphics Enthusiast ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- At 300 dpi you can tell she's wearing a swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you can tell it's painted on. I suppose at 2400 dpi you can tell if the paint is giving her a rash. -- Joshua R. Poulson ----------------------------------------------------------------------------- IM Examples http://www.imagemagick.org/Usage/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
