This is from urraka/alpha-bleeding.
-
The purpose of this fork is to simply nothing more, nothing less than to provide compiled binaries for Windows (as most likely the program was written with Linux/macOS in mind).
-
The binaries work with both 32bit and 64bit versions of Windows - I tested this for a Windows 7 Pro 32bit VM and a Windows 10 Education 64bit installation.
-
The goal is for users to quickly access this tool without having to fiddle with compiling it (and, more importantly, having to compile the libraries it depends on -
libpng, which on it's hand depends onzlib).
This is a small command-line 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.
Just download from the Releases page and use. It's that simple!
If you have got scoop, you can also install this tool to your PATH:
scoop bucket add rbxdev 'https://github.com/ddavness/scoop-RobloxDev.git'
scoop install alpha-utils
alpha-bleeding <input> <output>
alpha-remove <input> <output>
alpha-set <alpha> <input> <output>
- Both
<input>and<output>must be PNG image files. <alpha>is an 8-bit unsigned integer (from0to255)
- Likely you're missing the Visual C++ Redistributable runtimes. Get them here, and choose the runtime for your architecture - x86 for 32bit, x64 for 64bit.
- The latest version is always recommended (at this moment, from VS 2019), however any runtime package from VS 2015 or more recent will work.
I personally do not recommend this approach unless for some reason the program refuses to work and the steps mentioned above do not work. The libraries were built statically (as
.libfiles) instead of dynamic libraries (as.dllfiles)
-
Grab
libpngandzlibsource code, unpack and place both in the same directory; -
Copy the
vstudiofolder to<libpng-folder>\projects\vstudio. Overwrite. -
Open the
.slnfile. Build!
-
Note #1: You may encounter some errors. Those are related to programs bundled to test the library; I, davness, was too lazy to fix them - if you can actually fix those, please file an issue or PR regarding that.
-
Note #2: For this particular compilation the library versions were
1.6.37and1.2.11, respectively forlibpngandzlib.
Using this tool you can clearly see the effect of the alpha bleeding:
| Original image | After Bleeding | Alpha Removed | Bleeding + Remove | Alpha = 128 (0 - 255) |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |




