Aims & Objectives
I am trying to use IM on Solaris to create a fairly simple PNG file with the following requirements: 600x80; transparent background; a text message in grey left-justified wrapping Verdana size 10.
A bit of reading and I found that caption would handle my text wrapping for me, and the colour bit was easy.
After starting to use IM yesterday afternoon, I came up with the following command line:
- Code: Select all
convert -size 600x80 xc:transparent -fill "rgb(81, 98, 111)" -font /path/to/Verdana.ttf -pointsize 10 -gravity West caption:' Here is my message. It does not contain any unescaped single quotes. The quick brown fox jumps over the lazy example. The quick brown fox jumps over the lazy example. The quick brown fox jumps over the lazy example.' /path/to/output.png
(edited because I put canvas: in the example when I meant to write xc: as I am using an older version)
This worked fantastically well - I transferred the resulting file to a Windows box and opened it in Internet Explorer (yes, yes, I know... but I'm working in a corporate environment so this is a requirement). The image displayed fine.
Then I tried to open the PNG file in mspaint. Or include it in a PDF. In either case, no joy.
mspaint reports that "Paint cannot read this file. This is not a valid bitmap file. or its format is not currently supported."
Any ideas? Can anyone give me a 'clean' convert command line which will produce a basic PNG file with some text in from scratch?
IM version: Version: ImageMagick 6.6.0-10 2010-04-03 Q16 http://www.imagemagick.org
System running IM: SunOS <hostname goes here> 5.10 Generic_141445-09 i86pc i386 i86pc
I realise I'm not on the latest version. However, unless you have specific information about a relevant bug which is fixed in a later version, please don't just tell me I need to upgrade. I would love to, but it's not a trivial operation as the servers are administered by another department in another country.
I have done some googling and list/examples/forum reading around this but have failed thus far to understand what I am doing wrong; any pointers gratefully received.