Re: InitializeMagick ISSUE

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Wed, 9 Mar 2016, Damiano Fabiani wrote:

> Hello everyone,I'm new with GraphicsMagick and Magick++.
> 
> I was doing simple performance tests to verify the conversion speed from BMP format to PNG, JPEG and TIFF
> formats. Here is the code for BMP to PNG conversion and is similar for BMP to JPEG and BMP to TIFF:

Since you say you are using ImageMagick 6.9.3-Q16, this is an 
ImageMagick issue.  You should address it on the ImageMagick 
lists/forums.

You are of course welcome to use GraphicsMagick instead.  The Magick++ 
API offered by ImageMagick is rather similar to the one offered by 
GraphicsMagick since they originate from me and have not diverged 
much.

> The first time I forgot to call InitializeMagick, but the program runned anyway and I experimented about 19 ms
> conversion time from a 800x400 bmp to png; from bmp to jpeg I experimented about 7 ms and for bmp to tiff 1 ms.
> Then I correctly initialized the library by calling InitializeMagick and I runned the test another time. Now I'm
> experimenting about 130 ms conversion time for bmp to png, while performance seems to be the same for the other
> two conversions.
> 
> This behaviour is very strange. Why this loss of performance only with PNG? Am I missing something or am I doing
> something wrong?

This does indeed seem very strange.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.