How to extent image use c api
Posted: 2019-07-05T01:15:08-07:00
Code: Select all
convert -background white -gravity center input.jpg -resize 500x500 -extent 200x200 output.jpg
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
http://mirror.imagemagick.org/discourse-server/
http://mirror.imagemagick.org/discourse-server/viewtopic.php?t=36320
Code: Select all
convert -background white -gravity center input.jpg -resize 500x500 -extent 200x200 output.jpg