OpenXcom Forum

Modding => Help => Topic started by: Cooper on February 06, 2025, 12:22:08 am

Title: Converting 300 gifs to png
Post by: Cooper on February 06, 2025, 12:22:08 am
I have more than 300 gifs in Alien Takeover that i want to convert to png.

What would be the fastest way of doing this?

Is using this (https://buscher.eu.pythonanywhere.com/spritepalette) which is good, but as it cant read gifs (edit: seems like it reads gifs after all, not sure why it did not work last time), i’m just renaming the files to png before uploading them. Is that even a good idea?

Also, a few pictures looks very strange after converting, requiring even more time to manually fix.

Any suggestions?
Title: Re: Converting 300 gifs to png
Post by: B1ackwolf on February 06, 2025, 07:32:29 am
I use Aseprite. It keeps the palette untouched and saves me that extra step.

I still have to convert each file one at a time using the 'Save As' tool and then manually add .png. I managed to convert approximately 750 files in about two hours… definitely a hassle, but so far, it's the safest method I've found.
Title: Re: Converting 300 gifs to png
Post by: CrazedHarpooner on February 06, 2025, 11:18:45 am
I've looked around and it seems XnConvert will do the trick for you, tested it with some images from a mod converting them to GIF, then back to PNG and the palette looks untouched when I open them in LibreSprite.
Title: Re: Converting 300 gifs to png
Post by: kevL on February 06, 2025, 11:52:12 pm
IrfanView has a batch conversion tool under its File menu ...

not sure what it does to the palette tho,
Title: Re: Converting 300 gifs to png
Post by: Cooper on February 09, 2025, 12:44:50 am
I ended up using a free program called mtPaint. Finally something that just works!