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

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
loony
Posts: 2
Joined: 2011-03-22T06:55:04-07:00
Authentication code: 8675308

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

Post 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
jggretton
Posts: 7
Joined: 2007-03-14T10:18:19-07:00

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

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

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

Post 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?
loony
Posts: 2
Joined: 2011-03-22T06:55:04-07:00
Authentication code: 8675308

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

Post 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.
Post Reply