Convert dont terminate

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
marco_tv

Convert dont terminate

Post by marco_tv »

I have to extract some char from a font file ttf to a png file. I use this command:

convert -font fontfile.ttf -pointsize 32 label:"L" output.png

With some pointsize (for example 30 to 40 and 60 to 70) and some particular chars (for example "L" or "O" ) the convert comand continue to execute and dont terminate.

The fontfile.ttf is 270kb and normally the output.png could be of about 3kb (it's very small)

I already tried to add this parameters: -limit memory 16mb -limit map 32mb but it continue to give me the error.

I already tried with 16bit and 8bit version of ImageMagick

The Windows temp folder is in a partition of my harddisk that have 100GB of free space.

After some minutes that the convert comand is stil executing the free space of my computer terminate and it give me this error:
convert: invalid geometry '+3.35544e+007+33.5'
convert: out of memory


Who can help me please? It could be a bug of ImageMagick?
Instead if I use for example pointsize 60 or other character as "B" or "C" the conver comand function correctly and I obtain in a few seconds the correct output file (about 3kb)
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert dont terminate

Post by anthony »

Can you post a link to that font file so we can try?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply