Jump to content

How to smoothen alpha borders?


Go to solution Solved by frio,

Recommended Posts

I've an image which has "hard" alpha-transparency (=pixels are either fully transparent or not transparent at all).

I'd like to smoothen the transition so that the "last" pixels on the frontiers become progressively more transparent, so that once overlapped with the background it will blend more softly.

 

let me represent this on one dimension:

 

Currently I've

Image: 000000DDDDDDD   (0=empty, D=data)
Alpha: 0000009999999   (0= fully transparent ...  9=not transparent at all)

 

Id' want to get to:

Image: 000000DDDDDDD   (0=empty, D=data)
Alpha: 0000001369999   (0= fully transparent ...  9=not transparent at all)

 

I guess there might be a plugin which does this but I couldn't find it.

I found plugins which allow feathering the selection but:

  • this does effect the content of the image too, not just the alpha channel
  • this does "expand" the selection, whereas here I need to create the softening in the inside (because there's no data pixel outside the image)
Link to comment
Share on other sites

  • Solution

AA's Assistant from dpy's plugin pack does preserve color data as far as I can tell.

Made an opaque red circle (255, 0, 0, 255) on transparent green background (0, 255, 0, 0) and after AA's assistant the opaque circle's edges have contracted and no green has bled into the red or vice versa.

 

There's also Alpha Blur from Tanel's pack that doesn't touch the other channels, only alpha, but it's a little more aggressive. Might contract the object too much in some cases without additional adjustment.

 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...