• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
Resource icon

Mass Picture Recolorer 2019-04-20

Pokémon Essentials Version
Non-applicable
It's a python 2 script, that uses ImageMagick from the command line to recolor all images in a folder that do not start with "clut". It uses a Color Look Up Table to turn this:
https://*******************************535268411517829130/558649594972733441/001.png
Into this:
https://*******************************535268411517829130/558651255875043338/001.png
Using this:
https://*******************************535268411517829130/558651251273760778/clut.png

Don't let the 4 colors fool you though, as you can do all sorts of weird stuff with it.
https://*******************************535268411517829130/558651734122299414/001.png
https://*******************************535268411517829130/558651736341086218/clut.png

The left most part of the CLUT is the black replacement, while the right part is white replacement. It doesn't do so well when there's colored transparency, so you may need to give the sprites a once over to remove the background after the fact.

You have to install ImageMagick and add it to the PATH to use this script.

The script overwrites your sprites, make a back up!

So, the script itself is here:
Python:
Expand Collapse Copy
import os
for file in os.listdir("."):
    if not file.startswith("clut"):
        os.system('magick ( %s -colorspace gray -channel RGB )  clut.png -clut %s' % (file,file))
Save it as clut.py, it has to start with clut. Stick that and your Color Look Up Table image, called clut.png in a folder with your sprites and double click to run. It's kind of slow though, you can really watch each and every sprite get replaced.

It's just a small script, made it in February-ish, because the built in batch editor for ImageMagick, mogrify, was giving me problems.
Credits
Just me.
  • Like
Reactions: TechSkylander1518
Author
Vendily
Views
1,333
First release
Last update

Ratings

4.00 star(s) 1 ratings

More resources from Vendily

Latest reviews

So nice idea I like this, Thank you so much, I like this because I need some new features to my Project, This Mass Picture is needful who are making some new sprites
Back
Top