Topic: getting binary alpha channel from png (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=28454" title="Pages that link to Topic: getting binary alpha channel from png (Page 1 of 1)" rel="nofollow" >Topic: getting binary alpha channel from png <span class="small">(Page 1 of 1)</span>\

 
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 09-20-2006 18:31

hi guys,

i have a png file with pixels in different alpha values. some completely opaque, some completely transparent, some in between.
since it's a png it doesnt show an extra alpha channel in the channel list.

what i want to do now, is to remove all those "in between" alpha values.
say the alpha channel runs from 0 to 1, i want all pixels with alpha 0 < 0.5 set to alpha 0 and all others set to alpha 1.

usually i would do this with the image->adjust->threshold, but as i said, pngs dont show up their alpha channel. :/

thanks a lot!



(Edited by GRUMBLE on 09-20-2006 19:03)

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 09-20-2006 19:28

Open your png
In the Layers toolbar: Ctrl click on the layer, Add Layer mask, alt click on the mask, posterize it to 2. ( alt+i, a , p, 2, enter )

To get rid of the last transparent pixels, delete and apply the mask, then duplicate and merge the layer a zillion times ( ctrl+j, ctrl+e )


Is it what you want ?



(Edited by poi on 09-20-2006 19:36)

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 09-20-2006 20:06

yeah, thanks poi!

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 09-20-2006 20:14

You're welcome.
Btw I figured that you can click on the mask instead of alt-click

Oh and for the zillion copies it's faster to bash ctrl+j many times, then ctrl+shift+e



(Edited by poi on 09-20-2006 20:15)



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu