From cbf41a7f5b7972eb867f1ba06041a5f1b6480bfb Mon Sep 17 00:00:00 2001
From: John Muccigrosso
This command reduces or expands a JPEG image to fit on an 800x600 +
The following command reduces or expands a JPEG image to fit on an 800x600 display. If the aspect ratio of the input image isn't exactly 4:3, then the image is centered on an 800x600 black canvas:
@@ -2972,6 +2972,15 @@ function (its frequency), and thus determines the number of 'waves' that will -gravity center -extent 800x600 -quality 92 output.jpg +The command can also be used with a ratio. If the image is not already at that ratio, +it will be cropped to fit it. The -gravity setting has +the expected effects. + +
The following command crops a JPEG image so that it has a 4:3 ratio:
+ +magick input.jpg -extent 4:3 -quality 92 output.jpg ++