InitializeMagick ISSUE
Damiano Fabiani <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <CAD_et+gw00aF7qnoJegEq2=H0N1oBgmVyzE=cyMr-MAaBYQi9A@mail.gmail.com> |
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:
#include "Magick++.h"
int main()
{
using namespace Magick;
InitializeMagick(NULL);
Image bmpImage("C:\\images\\test.bmp");
Blob out_blob;
bmpImage.magick("PNG");
bmpImage.write(&out_blob);
TerminateMagick();
return 0;
}
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?
I am using ImageMagick 6.9.3-Q16 on windows 7 64 bit.
Regards
------------------------------------------------------------------------------
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
_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help