Reduce time for zoom image without loosing image quality..

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
sri123
Posts: 5
Joined: 2010-06-21T02:43:54-07:00
Authentication code: 8675308

Reduce time for zoom image without loosing image quality..

Post by sri123 »

Hello All,

I am using image magick 6.6.6 version for my VC++ application. In this application i am loading image (with 1920X1080 dimensions) and increasing image size with 25% zoom.
It takes 953 milli seconds per 25% zoom, 1500 milli seconds per 50% zoom and 2344 milli seconds per 75% zoom and increasing when size increases.

code for this is:

Code: Select all

Geometry  tNailSize(  szx, szy );
	tNailSize.aspect(true);
	m_Image.filterType(CatromFilter);
	m_Image.zoom(tNailSize);
If i am using "scale" method to zoom the time reduces but after several zoomin and zoomouts the quality of image reduced.

Code: Select all

Geometry tNailSize(  szx, szy );
	tNailSize.aspect(true);
	m_Image.scale(tNailSize);
I want to get the same performance of the zoom with the "Zoom" method.

How can i reduce the time taking for zoom in the first case?

Can any one help me to reduce time for zoom image without loosing image quality?

Thanking you advance..
Post Reply