• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Mass Picture Recolorer

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:
[PokeCommunity.com] Mass Picture Recolorer

Into this:
[PokeCommunity.com] Mass Picture Recolorer

Using this:
[PokeCommunity.com] Mass Picture Recolorer


Don't let the 4 colors fool you though, as you can do all sorts of weird stuff with it.
[PokeCommunity.com] Mass Picture Recolorer

[PokeCommunity.com] Mass Picture Recolorer


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 transparancy, so you may need to give the sprites a once over to remove the background after the fact.

[SIZE=+3]You have to install ImageMagick and add it to the PATH to use this script.[/SIZE]

[SIZE=+3]The script overwrites your sprites, make a back up![/SIZE]

So, the script itself is here:
Code:
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.
 

Attachments

  • [PokeCommunity.com] Mass Picture Recolorer
    clut.png
    703 bytes · Views: 9
Back
Top