possible bug-very slow converting to gif in 6.4.1-4

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug-very slow converting to gif in 6.4.1-4

Post by fmw42 »

I just installed IM 6.4.1-4 Q16-HDRI Mac OSX Tiger and was testing some scripts of mine that are now running very slowly. I think I have identified where the problem lies - converting to gif is very slow:

time convert logo: logo.jpg

real 0m0.219s
user 0m0.131s
sys 0m0.064s

time convert logo.jpg logo.gif

real 1m3.886s
user 1m2.246s
sys 0m0.675s


I am pretty sure this is not the case in 6.4.1-3.


I will switch back and add to this note with those timings.

Could you check this out when you can and see if you can verify.

Thanks.

Here are the timings from 6.4.1-3


time convert logo: logo.jpg

real 0m0.510s
user 0m0.116s
sys 0m0.056s

time convert logo.jpg logo.gif

real 0m6.673s
user 0m4.034s
sys 0m0.271s

Also the images that I was getting from my script were corrupted. This may be associated with the gif conversion, but I am not sure as I am now back on 6.4.1-3.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug-very slow converting to gif in 6.4.1-4

Post by magick »

We have some patches that speed up non-HDRI color reduction but slowed it down for HDRI. We'll investigate and see if we can speed-up both HDRI and non-HDRI color reduction.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug-very slow converting to gif in 6.4.1-4

Post by fmw42 »

I don't know if this is practical, but you could put a trap in for HDRI and use whatever you were doing for pre IM 6.4.1-4 HDRI and if not HDRI use your new algorithm.
Post Reply