Please help regarding ZOOM

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
wizards
Posts: 46
Joined: 2008-12-05T06:31:55-07:00

Please help regarding ZOOM

Post by wizards »

Hello All,

I am new to ImageMagick and doing a small application using VC++.
I have a problem with zoom. i have different sizes of images like 2048X1556, 1828X778 etc.
I have to zoom at a time a min of 3 images, the zooming factor is double to the size of the image.
If I zoom by double the size of the image size then it is taking too much time to zoom all 3 images.

It's very argent to me, plz help me.
Can you please help me how to reduce the time to zoom.

Thanks In advance.
Wizards
wizards
Posts: 46
Joined: 2008-12-05T06:31:55-07:00

Re: Please help regarding ZOOM

Post by wizards »

Hello All,

I gained speed by using "scale" method instead of "Zoom".
Please may i know what is the difference between "scale" and "zoom"?

Can i use threads to increase more speed?

Thanks In Advance
Wizards.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Please help regarding ZOOM

Post by anthony »

Zoom is another name for resize, and was in fact the original name of the program by Paul Heckbert whcih became the diffinitive image resizing method used by ALL modern day orthogonal resizing programs.

You can even still download that program!
http://www.xmission.com/~legalize/zoom.html

Resize itself does a fill 2 pass filtered (weighted color averaging) resizing of the image to get the colors exactly right.

Scale just does color merging (on shrink) and duplication on enlarge, so is faster.

Sample is the same, but does row/column removal on shrink.

see IM examples, resizing Images for all the details
http://www.imagemagick.org/Usage/resize/#filter
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
wizards
Posts: 46
Joined: 2008-12-05T06:31:55-07:00

Re: Please help regarding ZOOM

Post by wizards »

Thank you very much sir,

but i have a doubt that the scale will reduce quality of image.
Suppose if quality reduces which filter is better for me (Speed should not reduce).

Thanks in advance
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Please help regarding ZOOM

Post by anthony »

The default resize filter is very good. It will pick it depending on the type of image for best results.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply