transparent background for text image

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

Re: transparent background for text image

Post by Bonzo »

This works for me:

Code: Select all

convert -background transparent -fill #b02b2c -font Arial -pointsize 80 label:"Sample Text Image" normal_lbl.png
If you are using IE 6 transparency is not fully supported.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: transparent background for text image

Post by anthony »

Bonzo wrote:If you are using IE 6 transparency is not fully supported.
At least not for PNG, and not without some JAVA handling PNG format images.

the new IE 7 is suposed to completely suport PNG transparency in all conditions.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: transparent background for text image

Post by Bonzo »

Yes I should have myself clearer, IE 6 and below have problems with png transparency. As well as a java script way around the problem that never worked properly for me there is a mircorsft method but I can not remember the details now.
png transparency seems OK in IE 7.
Post Reply