Hi, Anthony I did my tests on PIII 650 Mhz PC (our web server) and it takes 35 sec! to do this command: convert -background lightblue -fill blue -font Arial -gravity Center -size 2000x500 caption:'Hello Image Magick!' text_image.gif And 24 sec to do it with specified pointsize. This speed in unacceptable for the things I am trying to do. Is it normal for this kind of PC config? Anything I can do to speed it up (without system upgrade)? Are there some alternative library that maybe simpler than ImageMagick but can draw text faster?
Thank you very much! Andrew On 3/11/07, Anthony Thyssen <[EMAIL PROTECTED]> wrote:
"Andrei Stebakov" on wrote... | Hi, | | If let's say I am given a limited box in which I should write some text | "Hellow, ImageMagick!", how would I calculate font parameters (size etc) to | make sure the text doesn't exceed the boundaries of the box? Can it be done | from MagickWand? | Don't!!!!! First use the latest IM release (at least 6.3.2), which has both auto-sized captions and labels. If the box is 200x100 pixels use.. convert -size 200x100 caption:'Hellow, ImageMagick!' text_image.gif This will word wrap the image so the largest font size posible, which fits the given space. It is about 10 times slower and internally IM does a lot of trial and error, but it will work. Just do NOT set a -pointsize, or turn it off with +pointsize. See IM examples, Text to Image, Captions http://www.imagemagick.org/Usage/text/#caption With an image of your test, you can now overlay it into the limited space. Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- "I must not fear. Fear is the mind killer. Fear is the little-death that brings total obliteration." "Litany Against Fear" - Dune ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
_______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
