Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/urraka/alpha-bleeding

Small tool to bleed the border colors of an image with transparency through the pixels that are fully transparent.
https://github.com/urraka/alpha-bleeding

Last synced: about 1 month ago
JSON representation

Small tool to bleed the border colors of an image with transparency through the pixels that are fully transparent.

Awesome Lists containing this project

README

        

This is a small tool to bleed the border colors of an image with transparency through the pixels that
are fully transparent. It's intended to avoid filtering issues in OpenGL applications.

**Usage:**

`alpha-bleeding `

Both `` and `` should be PNG image files.

**Building:**

Just type `make` on the root directory. `libpng` and `libz` are the only required dependencies.

**Example:**

It's hard to see the effect of this tool, given that it only modifies the transparent pixels, so I
added another tool which just changes the alpha channel of every pixel to fully opaque. It can be
used the same way:

`alpha-remove `

Using that helper tool you can clearly see the effect of the alpha bleeding:

Original image:

![original](media/original.png)

Image after `alpha-bleeding` (not much to see):

![alpha-bleeding](media/alpha-bleeding.png)

Original image after `alpha-remove`:

![original-opaque](media/original-opaque.png)

Image after `alpha-bleeding` and `alpha-remove`:

![alpha-bleeding-opaque](media/alpha-bleeding-opaque.png)