Page 1 of 1
resize same image multiple times for different sizes
Posted: 2019-01-10T23:54:02-07:00
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
Re: resize same image multiple times for different sizes
Posted: 2019-01-11T06:22:24-07:00
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.
Re: resize same image multiple times for different sizes
Posted: 2019-01-16T22:47:48-07:00
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 )
Re: resize same image multiple times for different sizes
Posted: 2019-01-16T23:18:19-07:00
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++.
Re: resize same image multiple times for different sizes
Posted: 2019-01-16T23:25:12-07:00
by Coder
Thanks for confirming this