TIF-JPG Conversion Performance issue between versions

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
TomatoSkittles

TIF-JPG Conversion Performance issue between versions

Post by TomatoSkittles »

Hey Guys. I'm new to ImageMagick, so please bare with me.

I've been charged with the task of updating the version of ImageMagick used in a module.

The old version is 6.3.4 and I've updated to 6.4.4.

Fundamentally, we use ImageMagick to create thumbnail images from large images.

Originally we were changing versions because we have some .psd files that ImageMagick would not correctly generate the thumbnails for.

Now, however, after updating: we have 2 new issues.

I'll post each issue separately.


The first: Major performance decrease when converting .tif to .jpg:

One file I've been testing is a large .tif file, approximately 260 megabytes.

For this test, I've completely ignored changing the size, and stuck with straight conversion, since conversion alone expresses the problem.

Converting the .tif file to .jpg in 6.4.4 results in a huge performance loss compared to 6.3.4.

259,791,792 test.tif



Under 6.3.4 using the following command:

convert test.tif test.jpg

The operation took approximately 1 minute. The resulting file was:

151,056,454 test.jpg


Under 6.4.4 using the following command:

convert test.tif test.jpg

The operation took approximately 7 minutes. The resulting file was:

52,162,964 test.jpg




I immediately thought, because of the filesize difference, that the default compression must be different. So I tried this command:

convert -quality 0 test.tif test.jpg

This operation took approximately 5 minutes to complete.

Resulting in this file:
52,162,964 test.jpg



This is still significantly longer than 6.3.4. What am I doing wrong? Converting the .tif to .bmp was less than 1 minute in both versions. So I'm assuming that this is an issue with the jpg library. However, increasing the conversion time by 500%, sounds like I am doing something wrong.

My machine is:
P4 3.0 ghz with hyperthreading
1 gig of ram.

Any help would be appreciated!

Thanks in advance!
TomatoSkittles

Re: TIF-JPG Conversion Performance issue between versions

Post by TomatoSkittles »

I just downloaded this version:

ImageMagick-6.4.4-6-Q8-windows-static.exe

and I am consistently converting the above mentioned 260 meg tif file in 41 seconds :P

I was previously using the Q16 version.

Looks like I found my own solution, sorry for wasting anyone's time!

I'll do a bit more research before posting my other issues...
Post Reply