[Solved] Using -distort to create curved text with transparent background

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
bkstorm
Posts: 8
Joined: 2017-04-27T23:22:30-07:00
Authentication code: 1151

[Solved] Using -distort to create curved text with transparent background

Post by bkstorm »

I have a command like this:

Code: Select all

convert -font Tahoma -pointsize 20 label:' Around the World ' \
-virtual-pixel Background -background SkyBlue \
-distort Arc 60 arc_circle_1.png
The command will create an image:Image
The background color of the text is white, I want it to be transparent. How can I do that? Thanks.
Last edited by bkstorm on 2017-04-30T21:13:10-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Using -distort to create curved text with transparent background

Post by snibgo »

The default background is white. To make it transparent, insert "-background None" before "label:".
snibgo's IM pages: im.snibgo.com
bkstorm
Posts: 8
Joined: 2017-04-27T23:22:30-07:00
Authentication code: 1151

Re: Using -distort to create curved text with transparent background

Post by bkstorm »

I tried "-background None" before, but my image viewer software display white color instead of transparent, so I thought my command is wrong.
When I used another software, it works. Thank for your help, snibgo.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: [Solved] Using -distort to create curved text with transparent background

Post by snibgo »

Yes, some viewers show transparent as white, so it can be confusing.

When I write a command, I often use "-background pink" or blue or something, so I can clearly see what I am doing. When it works, I change it to "-background none".
snibgo's IM pages: im.snibgo.com
Post Reply