Page 1 of 1

Convert to generate PNG-Text - Chars + & . don't wrong alone

Posted: 2011-03-22T07:03:40-07:00
by loony
Hello.

I'd like to generate PNG-files with Text.

That works fine...

Code: Select all

convert -density 72x72 -background "transparent" -fill "#000" -gravity Center -pointsize 25 -font arial.ttf label:"TEST" ~test.png
But

Code: Select all

convert -density 72x72 -background "transparent" -fill "#000" -gravity Center -pointsize 25 -font arial.ttf label:"+++" ~test.png
or this

Code: Select all

convert -density 72x72 -background "transparent" -fill "#000" -gravity Center -pointsize 25 -font arial.ttf label:"..." ~test.png
generate only empty PNG-files.

Is that a bug?
Or have I a failure in my command?

Version: ImageMagick 6.6.7-5 2011-02-03 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
Windows XP SP3

Re: Convert to generate PNG-Text - Chars + & . don't wrong a

Posted: 2011-03-22T08:01:45-07:00
by jggretton
Hi Loony, I've just tried your commands on Imagmagick 6.4.8-7 on XP SP3 and all worked fine.

Not hugely useful, but does narrow it down a little!

James

Re: Convert to generate PNG-Text - Chars + & . don't wrong a

Posted: 2011-03-22T09:55:46-07:00
by fmw42
PNG has been undergoing quite some rework and bugs have been removed and features added. At times things may not have worked well. It is recommended that you upgrade to the latest version of IM. see changelog for all the details of the changes http://www.imagemagick.org/script/changelog.php

Re: Convert to generate PNG-Text - Chars + & . don't wrong a

Posted: 2011-03-22T10:34:01-07:00
by Bonzo
Again it works OK for me using Windows XP command and Imagemagick 6.5.9

How are you running the code e.g. Batch, shell, php etc?

Re: Convert to generate PNG-Text - Chars + & . don't wrong a

Posted: 2011-03-23T00:04:24-07:00
by loony
Normal cmd under Windows XP SP3 and ImageMagick-6.6.7-Q16 (static)

I'm using it also in a PHP Script (with a @textfile.txt).

abc++ works
++abc works
and
~~~ works fine

but

+++ -> empty picture
--- -> also empty picture

But only on windows. Same code on webserver works fine.


I try update to ImageMagick-6.6.8-6-Q16. Maybe that solve the problem.