You are not logged in.

#1 2014-10-12 19:03:01

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Slow Operation of IM Using Custom Font

I use a variation of this command in an application, and it has run sufficiently fast for years. However, with the current version of ImageMagick, it is extremely slow when I use a custom font (causing the application to hang disconcertingly). No errors are thrown, even with the -verbose tag. Does anyone know why IM is now so slow operating on a custom font, and if there is anything I can do to optimise the operation? Thanks.

With no font specified, this command runs in a tenth of a second:

[tony@linux ~]$ start=$(date +%s%3N) ; convert -pointsize 24 caption:"Lorem ipsum dolor sit amet" pic.png ; echo `expr $(date +%s%3N) - $start` ms
118 ms

With a custom font specified, the same command takes almost five seconds:

[tony@linux ~]$ start=$(date +%s%3N) ; convert -font /usr/local/share/fonts/c/code2000.ttf -pointsize 24 caption:"Lorem ipsum dolor sit amet" pic.png ; echo `expr $(date +%s%3N) - $start` ms
4650 ms

Last edited by tony5429 (2014-10-12 19:06:50)

Offline

#2 2014-12-14 01:21:22

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: Slow Operation of IM Using Custom Font

No ideas on this issue?

Offline

Board footer

Powered by FluxBB