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 » 2019-01-10T23:54:02-07:00

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: 11687
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 » 2019-01-11T06:22:24-07:00

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 » 2019-01-16T22:47:48-07:00

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: 25022
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 » 2019-01-16T23:18:19-07:00

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 » 2019-01-16T23:25:12-07:00

Thanks for confirming this

Post Reply