Alpha on already transparent images..

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
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Alpha on already transparent images..

Post by dognose »

I'm trying make an image with transparency more see though.
I'm using
convert image.png -alpha on -channel a -evaluate set 50% out.png

However, it removes the areas that were completely transparent and makes them 50%..
So, I'm losing the mask..

How can I keep the mask and bump up the rest of the alpha?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Alpha on already transparent images..

Post by snibgo »

Instead of setting the alpha, you should multiply it, eg by 0.5.
snibgo's IM pages: im.snibgo.com
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Re: Alpha on already transparent images..

Post by dognose »

-evaluate multiply 0.5

works great, THANKS!
Post Reply