resize same image multiple times for different sizes

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Coder
Posts: 15
Joined: 2019-01-05T11:15:30-07:00
Authentication code: 1152

resize same image multiple times for different sizes

Post by Coder »

Hi all,

Is it possible to resize same image multiple times for different sizes in single api, same way script is doing?

Thanks in advance
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: resize same image multiple times for different sizes

Post by snibgo »

Coder wrote:... same way script is doing?
What script?

A single call to a Magick++ function can't create multiple copies at different sizes. But you can create a clone then resize that, and repeat as many times as you want.
snibgo's IM pages: im.snibgo.com
Coder
Posts: 15
Joined: 2019-01-05T11:15:30-07:00
Authentication code: 1152

Re: resize same image multiple times for different sizes

Post by Coder »

What script?
I meant the way the command line works, you can give multiple commands in a single line and I read some posts here telling that way imagemagick provide some performance improvements. I was trying to improve performance of my application which uses imagemagick ( imagemagick is eating CPU for the APIs sample, draw and fontTypeMetrics )
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: resize same image multiple times for different sizes

Post by fmw42 »

Multiple commands in a single line is only for the command line interpreter version of ImageMagick. It does not apply to APIs such as Magick++.
Coder
Posts: 15
Joined: 2019-01-05T11:15:30-07:00
Authentication code: 1152

Re: resize same image multiple times for different sizes

Post by Coder »

Thanks for confirming this
Post Reply