COrrect way to apply filter to only one layer

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
palobo
Posts: 10
Joined: 2011-05-23T04:22:06-07:00
Authentication code: 8675308

COrrect way to apply filter to only one layer

Post by palobo »

Hi all IM gurus.

I'm rather new to this so please bear with me. I have gone through the usual search but didn't find anything to point me in the right direction.

I'm basicly try to draw a few strokes layered atyop of each other. Eacj with their own filter/effect but haven't yet managed. I'll elaborate a little more.

Stroke 1 needs a blur so as to simulate a shadow (without the offset)
Stroke 2 needs to be exactly on top with some transparency and smaller witdh
Stroke 3 ... and so on.

The problem is that once I try and apply transparency to stroke 2 it also applies it to stroke 1 my code so far is this:

Code: Select all

convert -size 150x150 xc:none \( -fill none -stroke red -strokewidth 3 -draw "arc 10,10 130,130 80,280" -channel RGBA -blur 0x5 \) \ 
\( -stroke white -strokewidth 1 -draw "arc 10,10 130,130 80,280" -channel a -evaluate divide 2 \) stroke.png
Any clues are greatly appreciated!

Cheers,
PL
palobo
Posts: 10
Joined: 2011-05-23T04:22:06-07:00
Authentication code: 8675308

Re: COrrect way to apply filter to only one layer

Post by palobo »

Sorry to all if I wasted any of your time. It seems that after a little more searching I found something that got me further along

viewtopic.php?f=1&t=17911

Now on with the testing ;)

Cheers,
PL
Post Reply