REXPaint > Everything REXPaint

.gpl File type Support.

(1/3) > >>

BenDragon81037:
.GPL is a palette file used by GIMP which lets you specify an unlimited amount of colours.
these .gpl files are also supported by inkscape and krita.

The file format is human readable so you can open the file up in a text editor and make your own if you know the RGB values.

Attached are sample files I compiled from e-paint.co.uk using regular expression to show you an example of what they look like.

Kyzrati:

--- Quote from: BenDragon81037 on December 08, 2023, 06:03:25 AM ---The file format is human readable so you can open the file up in a text editor and make your own if you know the RGB values.
--- End quote ---
Note that Cogmind's palette files are also human readable and you can do the same thing if you know the RGB values. That's how users generated all those palettes on the resources page.

There's tons more information about this and many other features in the manual included with the download.

Unlimited colors is not something REXPaint will do, though. In the current version they must fit on the grid presented. A future 2.0 would be significant expanded in many ways, especially the UI, so who knows then. I was eager to expand the tileset size to unlimited height, since that was a highly request feature over the years, so that was done, but I've never heard of anyone wanting more than the 192 colors that REXPaint supports. The vast majority of people are working with palettes significantly smaller than that. Of course if it's really important one can also have a couple palette files since it's easy to swap between them.

BenDragon81037:
Oh you're totally right and I completely understand that.  :D

I also agree with you, the reason why I suggest this, is to make it simpler to transfer palette files between applications more seamless.

If you are not too enthusiastic about the unlimited nature of it? Why not read the file and when the palette in REXPaint fills up, it could simply continue attempting to write something into nothing?

The idea really is just a wild take based on scam USB Flash storage devices. 🤷🏻‍♂️

Maybe truncate the read attempt when the palette is full to save on loading time, especially when you have literally millions of colours? idk, it's your program and you don't need to take on board my suggestions. Nor should you feel pressured into implementing my suggestion.

It's already an awesome program and I can't wait for 2.0!

Kyzrati:
Oh sure it's doable, and that's a potential reason to do it, cross-compatibility, it's just not compatible with the way RP handles palettes and would require significant changes. It would make more sense to simply have a separate converter for turning Gimp palettes into the format used by RP, operating on the text file itself. Someone could do this pretty easily.

Or a simpler approach would just be if you drop a .gpl into the normal palettes directory, REXPaint can just detect and automatically convert the first 192 colors for you and delete the original. Basically a built-in importing feature. That would be quite easy, too.

2.0 is going to be a who-knows-how-long kind of wait xD

BenDragon81037:
I am not too sure really?
Considering GPL uses

--- Code: ---  R   G   B Name
--- End code ---
And yours uses

--- Code: ---{  R   G   B}
--- End code ---
ignoring the header, A regular expression code handles the conversion partially okay?
Find
--- Code: ---(\d+\s+\d+\s+\d+).+
--- End code ---
Replace
--- Code: ---{$1}
--- End code ---

I guess without more experimenting with how palettes are handled within RP it's really hard to say.

I am pretty sure that it's possible to automate the conversion between the palette styles with an independently run script file? I am not too sure on this sort of stuff myself. :P

Navigation

[0] Message Index

[#] Next page

Go to full version