-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
y4my4m-pixelizer #363
base: extensions
Are you sure you want to change the base?
y4my4m-pixelizer #363
Conversation
there's an existing old script that is not actively maintained (from what I can see) but as far as I can tell it's still works it does everything yours dose and more accept "remove the background using the first top-left pixel's color"
|
@w-e-w Also, top-left pixel is a common thing in spritesheets with the pink background. |
ahhh |
any suggestions before I make a PR to https://github.com/Leodotpy/sd-pixel |
for future reference your |
one pixelscript to rule them all Also, my bad about the tag, should have caught that. |
spritesheets as in basically different animation steps of a pixel art object? I suppose that's a game industry thing? |
@w-e-w yes exactly, these: |
this? |
Might have been this one |
so different frames can have different sizes (width and hight), I guess there is some sort of configuration that needs to go with this image right |
@w-e-w yeah exactly, as far as I understand it it's more of a legacy standard so that you do not to have to deal with the alpha channel in the case of AI, a few models are trained on these kind of pixelart and produces a non-transparent image anyway, so reusing the "pink background" method makes sense |
I feel like transparency could be a standalone extension as it might be useful in general like there are lots of ways you might want to set transparency for example also depends on what you need the output format can be different |
@w-e-w it's not a bad idea |
wait ... if I my code reading is correct we seem to have neglected support different extra modules in API I was testing with different modes of dithering |
@w-e-w yes the extra dont work out of the box in the API, ive been hard coding the changes for my server lol Post some code for the dithering/result i can check with you |
Info
https://github.com/y4my4my4m/y4my4m-pixelizer
This is a very simple script that simply shrinks the image down using neareset neighbour by the set pixel amount, with the option to scale it back up. As well as the option to remove the background using the first top-left pixel's color.
Before:
After:
Checklist:
Readme.md
index.json
andextension_template.json
have not been modified.entry
is placed in theextensions
directory with the.json
file extension.