If you want to force the image to become a specific size - even if it messes up the aspect ratio - add an exclamation point to the dimensions: convert example.png -resize 200x100! example.png It will alter the image to fit within a 200×100 area, but the image may not be exactly 200×100. ImageMagick will try to preserve the aspect ratio if you use this command. We’ve used the same file name here, so ImageMagick will overwrite the original file. The following command asks ImageMagick to resize an image to 200 pixels in width and 100 pixels in height: convert example.png -resize 200x100 example.png The convert command can also quickly resize an image. ImageMagick uses the quality level of the input image, if possible.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |