MagickCore Help

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
luwenbin

MagickCore Help

Post by luwenbin »

I want to use MagickCore to implement the same functon as "convert -size [widthxheight]", but I don't know which API I should use... Could anyone give me a hand? Thanks very much
luwenbin

Re: MagickCore Help

Post by luwenbin »

Also I want to know the API Interface of convert -size in magic++ and MagickWand, Could anyone can help?Thanks for your help!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: MagickCore Help

Post by magick »

Each of the API's have simple examples to get your started. Have you read http://www.imagemagick.org/script/magick-core.php (MagickCore), http://www.imagemagick.org/script/magick-wand.php (MagickWand) and http://www.imagemagick.org/Magick++/ (Magick++). Download and build each of the example programs then come back with specific questions about the API.
luwenbin

Re: MagickCore Help

Post by luwenbin »

I don't see any API can do this "-size" funtion in MagickCore API site, but seems I can do this with following steps
1. get image_info
2. set image_info->size = width x height, image_info->filename = read file name
3. read image using this image_info
I don't know whether it is a good way...
Post Reply