You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on a little script to make normal+shiny images, and found some missing assets.
Here is the source for it (just in case someone wants to use it):
importosfromosimportpathfromPILimportImage, ImageDraw# NOTE: File is located at `sprites`, will break on other locations due to relative paths# Read mask imageMASK=Image.open("mask.png").convert("1") # 96x96 mask whichs splits the image in half with a diagonal cutINPUT=path.join(".", "pokemon")
OUTPUT=path.join(INPUT, "edited")
# Create directory if neededifnotpath.exists(OUTPUT):
os.mkdir(OUTPUT)
# Iterate all images(pokemons)foriinos.listdir(INPUT):
# Dodge directoriesif"."notini:
continue# Some pokes don't have a shiny sprite on the directory, need to handle the exceptiontry:
sprite_path=path.join(INPUT, i)
shiny_path=sprite_path.replace("pokemon", "pokemon/shiny")
sprite=Image.open(sprite_path).convert("RGBA")
shiny=Image.open(shiny_path ).convert("RGBA")
output=Image.composite(sprite, shiny, MASK)
# Empty line on the intersection, looks fancier imodraw=ImageDraw.Draw(output)
draw.line((0, 0) +output.size, width=1, fill=(0, 0, 0, 0))
output.save(path.join(OUTPUT, i))
except:
print(f"{i.split('.')[0]}")
I've been working on a little script to make normal+shiny images, and found some missing assets.
Here is the source for it (just in case someone wants to use it):
And the list of missing files
Also worth noting:
804s.png
is the same asshiny/804.png
and can likely be deletedThe text was updated successfully, but these errors were encountered: