OpenXcom Forum

Modding => Released Mods => XPiratez => Topic started by: tylor on February 14, 2017, 03:16:44 pm

Title: Pedipal - GIMP plugin for converting images to Pedia-compatible palette
Post by: tylor on February 14, 2017, 03:16:44 pm
Unpack this file to your GIMP folder, usually %UserProfile%/.gimp-2.8 on Windows.

It contains script itself and a reference palette, which is a palette where mandatory Bootypedia colors are in place, and other slots are filled with #B00B15

When you run Gimp, there will be "Make pedia-compatible" option in Images menu, and it does just that with current image. It will ask you for reference palette and filler color, but they are set right by default, so you can just press OK.

Internally it does pretty much what Meridian describes in this https://openxcom.org/forum/index.php/topic,4957.msg72548.html#msg72548 post.

UPDATE: 1.0.1 version. Fixed couple of bugs, found thanks to Escavel and Solaris Scorch. One bug was that first color in reference palette was wrong, other was that script failed when there were too few colors in image. Both are fixed
Title: Re: Pedipal - GIMP plugin for converting images to Pedia-compatible palette
Post by: Carfax on February 15, 2017, 12:56:13 pm
Oh man this is great. I was just starting to do the same but thankfully checked the forum before.

Regards
Carfax
Title: Re: Pedipal - GIMP plugin for converting images to Pedia-compatible palette
Post by: Solarius Scorch on February 15, 2017, 03:24:56 pm
Can you please specify what steps are automated exactly? All of them?
Title: Re: Pedipal - GIMP plugin for converting images to Pedia-compatible palette
Post by: tylor on February 15, 2017, 04:38:57 pm
Steps 2-8. So, you only have to cut image to right size, rest script will do itself.

PS. If you want it to do more, ask, I can add other stuff. Like auto-resizing, saving in specific place in specific format, etc.
Title: Re: Pedipal - GIMP plugin for converting images to Pedia-compatible palette
Post by: Solarius Scorch on February 15, 2017, 08:05:55 pm
OK, and where is this  "Make pedia-compatible" option? Can't see it anywhere. There's no "Images" menu at all - there is only "Image", and it's not there.

EDIT: Sorry, works now... Somehow the files didn't extract properly.
Title: Re: Pedipal - GIMP plugin for converting images to Pedia-compatible palette
Post by: Amiga on March 11, 2018, 10:13:32 pm
Unpack this file to your GIMP folder, usually %UserProfile%/.gimp-2.8 on Windows.

It contains script itself and a reference palette, which is a palette where mandatory Bootypedia colors are in place, and other slots are filled with #B00B15

When you run Gimp, there will be "Make pedia-compatible" option in Images menu, and it does just that with current image. It will ask you for reference palette and filler color, but they are set right by default, so you can just press OK.

Internally it does pretty much what Meridian describes in this https://openxcom.org/forum/index.php/topic,4957.msg72548.html#msg72548 post.

UPDATE: 1.0.1 version. Fixed couple of bugs, found thanks to Escavel and Solaris Scorch. One bug was that first color in reference palette was wrong, other was that script failed when there were too few colors in image. Both are fixed


I have some trouble with it.
1. I've opened infranView and resized img to 320x200 + decreased colours to 256
2. In GIMP from IMAGE/Make-Pedia Compatibile
3. Reference Palette XCOM-Ufopedia-Fixed
4. Export as PNG

..and doesn't work...

What I'm doing wrong?

UPDATE
Sorted out now!  I've forgot to name asset as _CPAL and now all working fine!
Title: Re: Pedipal - GIMP plugin for converting images to Pedia-compatible palette
Post by: Finnik on November 14, 2020, 10:08:37 pm
Be aware that it does not work with the modern version of GIMP (at least for me, tho I tried it hard). Tho, it works fine without any troubles on the old 2.8 version, you can grab it from https://download.gimp.org/mirror/pub/gimp/v2.8/windows/ (https://download.gimp.org/mirror/pub/gimp/v2.8/windows/)
I can confirm it's working for 2.8.22.
Title: Re: Pedipal - GIMP plugin for converting images to Pedia-compatible palette
Post by: krautbernd on May 14, 2023, 05:12:15 pm
I just kind of stumbled upon this thread trying to figure out how these CPAL-images work.

Just tried this script and it is an absolute timesaver, and it does in indeed work on more "modern" version of GIMP, in my case 2.10.30.

Thanks a bunch tylor :)
Title: Re: Pedipal - GIMP plugin for converting images to Pedia-compatible palette
Post by: Solarius Scorch on May 14, 2023, 06:02:21 pm
Agreed; it's immensely useful.
There's absolutely no way I'd use custom palettes without this plugin.
Title: Re: Pedipal - GIMP plugin for converting images to Pedia-compatible palette
Post by: urz9999 on July 31, 2023, 02:52:23 pm
Thanks for the plugin I'm using right now for my extra race mod! Love it!