Page 1 of 1

Problem with performance using the caption option

Posted: 2013-03-01T01:07:20-07:00
by jjbaranowski
Hello,

I ran into a problem with performance using the caption option on the latest version of ImageMagick-6.8.3-6. I had an older server running ImageMagic-6.7.0-10 and the following command takes 2 seconds to complete. When I run it with the latest version, it take close to 50 seconds to complete.

convert -size 1325x708 xc:none -size 1275x650 -background none -gravity center -font Arial caption:"This is a test. This is another test. This is just another test." -compose over -composite testfile.png

I removed the latest version and replaced it with an older version (ImageMagic-6.7.0-10) and tested the command again on the newly built server and it worked great. It took 2 seconds to complete. I took the time to install version 6.7.5-10 and it worked fast as well. I then continued to install versions 6.7.6-10 through 6.8.0-10 and tested each version with the command above and found that all versions finished the command in 2-3 seconds until I reached version 6.7.9-10. This version is the version where it started to take a very long time to complete and every version there after. It works, yes, but not usable in a real world application. Can anyone shed some light on this? I'm not sure what I can do to fix this problem.

Thanks,

-John

Re: Problem with performance using the caption option

Posted: 2013-03-01T03:29:14-07:00
by snibgo
What platform are you on? I'm on Windows 7.

The performance issue seems to be in "caption:", so here's a simplified version:

Code: Select all

"%IMG680%convert" ^
  -size 1275x650 -background none -gravity center -font Arial caption:"This is a test. This is another test. This is just another test." ^
  testfile3.png
My timings:
v6.7.9-6: 3 seconds
v6.8.0-0: 2 min 38s
v6.8.3-0: 2 min 35s

Re: Problem with performance using the caption option

Posted: 2013-03-01T05:21:32-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.3-7 Beta available by sometime tomorrow. Thanks.

Re: Problem with performance using the caption option

Posted: 2013-03-01T11:17:26-07:00
by jjbaranowski
Thanks for the quick response. Looking forward to trying the latest version again. Let me know when it's available to download.

-John