ImageMagick: Cropping images

Posted . Visible to the public.

ImageMagick takes a string with several options when cropping an image. See the command line options for how to provide the expected image geometry Show archive.org snapshot for details.

Note that ImageMagick tends to preserve the original aspect ratio of the source image automatically.

Examples:

  • crop 200x200 means Maximum values of height and width given, aspect ratio preserved.
  • crop 200x200! means Width and height emphatically given, original aspect ratio ignored.
Last edit
Deleted user #3651
License
Source code in this card is licensed under the MIT License.
Posted to makandra dev (2015-01-19 10:39)