[FIX] Cleaned up low alpha pixels from body_base - #640
Merged
Jomshir98 merged 4 commits intoJul 22, 2026
Merged
Conversation
Contributor
Author
|
Oh, so tests check hash of core assets... |
Contributor
Yes, Jomshir will take care of that. Thank you for this cleanup! |
Nikky90506
force-pushed
the
body-base-cleanup
branch
from
July 21, 2026 18:16
c1ace96 to
a0d5b81
Compare
Jomshir98
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References
I don't think there's any particular issue created for this:
About The Pull Request
Goal
Turns out all of the layers for Base Body have "stray almost-transparent pixels at random places". The goal was to remove most glaring cases of these.
How
The idea was to find minimal alpha value threshold at which selecting outer transparent pixels didn't result in any "islands" and then deleting all the pixels in the selection. So threshold was found manually for each layer, I think it was 30 at most. Honestly, it could probably be even more, but I decided to err on the side of caution.
Example
Body_back changes
Before:

After:

Notes
By nature of this change it's very unlikely to be able to see the differences visually, but you may notice the reduced filesize of layers.
It can be checked manually though, by using your preferred editor. For Krita, it would be choosing "Similar Color Selection Tool", setting Tool Options -> Selection extent -> Threshold to minimum and clicking on outer transparent area of the layer.
Krita interface
I didn't like trying to use Krita for the cleanup though, as it handles such selections weirdly and used GIMP instead. But it's enough to see the issue.
It might be a good idea to add this to asset creation tutorial as we have other assets with similar problem. I didn't want to go through the whole repo at once and decided to keep the scope to Body Base. But, for example, Asian Dress has a little of these stray pixels too. Probably some kind of automated check could be devised for this, but that's an idea for another day.
GIMP vs Krita
Example of differences between Krita and GIMP. While GIMP selects all pixels below Threshold, Krita... I'm not exactly sure what happens.
GIMP

Krita

Changelog
Authored by: Nikky
Checklist