Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
- Posts: 28
- Joined: 2018-12-05T05:47:49+00:00
- Authentication code: 1152
Code: Select all
convert -background white -gravity center input.jpg -resize 500x500 -extent 200x200 output.jpg
How to use C API to do this command?
- Posts: 12159
- Joined: 2010-01-24T06:01:33+00:00
- Authentication code: 1151
- Location: England, UK
For "-extent", see ExtentImage() in transform.c.