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.
Hello, thanks for providing this script.
I had to make a couple changes to get this working for me. Maybe something about your spritesheet is arranged differently. The issues I had:
I needed to update 16x16 tile sprites in a 128xn spritesheet. With a sprite that touches top and bottom, expanding from just 1 side does not solve the bleed issue. I updated the code so the padding you supply gets divided by 2 and added on both ends - by just moving the sprite up and left that much space.
This fixed my issue with the bevy sprite.
I see you already have examples in your readme so I recommend you test what my code does and compare it to your results and see if it's what you want.
Thanks for the project, it got me 99% of the way there.
The input file and outputs are added to the docs for your review:
You can see how padding is applied evenly top and bottom. Left and right.