How to add transparency

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
anshupitlia
Posts: 1
Joined: 2015-03-02T23:55:59-07:00
Authentication code: 6789

How to add transparency

Post by anshupitlia »

I have to create an image, which is an overlay texture made up of a white image with some transparency to give it the appearance of a rubber stamp. For reference see the image "stamp_overlay.png" in the video http://railscasts.com/episodes/374-image-manipulation .

This is what i did:

Code: Select all

convert -size 70x70 canvas:white stamp_overlay1.png
and then

Code: Select all

convert stamp_overlay1.png -transparent white stamp_overlay1.png
But how do I give a rubber stamp effect?


I am pretty much new to ImageMagick. Any help is highly solicited. Thanks
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to add transparency

Post by snibgo »

As you see in the video, convert needs an input and an output. Your second command has no output.
snibgo's IM pages: im.snibgo.com
atariZen
Posts: 25
Joined: 2016-02-09T12:58:42-07:00
Authentication code: 1151

Re: How to add transparency

Post by atariZen »

That's a useful video, but it's incomplete because the instructor does not say how to create the stamp_overlay1.png. That file came out of nowhere. Anyone else encountering this thread will want to see this thread:

viewtopic.php?f=1&t=20080

That includes how to make ImageMagick do the work to derive the rubber stamp effect.
Post Reply