Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/urraka/alpha-bleeding
- Owner: urraka
- License: mit
- Created: 2014-03-07T14:25:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T19:25:24.000Z (about 7 years ago)
- Last Synced: 2023-03-31T16:34:30.961Z (almost 2 years ago)
- Language: C++
- Size: 1.01 MB
- Stars: 39
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)