How to extent image use c api

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.
Post Reply
Posts: 28
Joined: 2018-12-04T22:47:49-07:00
Authentication code: 1152

How to extent image use c api

Post by tczf1128 »

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-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to extent image use c api

Post by snibgo »

For "-extent", see ExtentImage() in transform.c.
snibgo's IM pages:
Post Reply