After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 305955 - Import Paint Shop Pro .PAL palette files
Import Paint Shop Pro .PAL palette files
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
2.2.x
Other All
: Low enhancement
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-05-30 18:55 UTC by Kethlar
Modified: 2008-01-15 12:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implements importing of PSP palette files (3.13 KB, patch)
2005-05-31 08:15 UTC, Joao S. O. Bueno
none Details | Review
Sample PAL file for testing (1.93 KB, text/plain)
2005-05-31 08:17 UTC, Joao S. O. Bueno
  Details

Description Kethlar 2005-05-30 18:55:44 UTC
Distribution/Version: XP Prof

Ok, I dont know how to explain this I would like to know how Can i get more 
Palettes... I know I can make them, but I want to CONVERT .PAL (PSP Extention), 
and .ACT (PhotoShop Extention) palettes to .GPL (GIMP Extention) So i can use 
different ones from different places So ic an always keep uptodate and be good 
at what I do.

Frainkly is a there a program, or something that i can use to 
convert .PAL / .ACT files to .GPL files so I can use the GPL in GIMP?

Since I dont knwo if this is a bug that I cant use PAL or ACT or if i can and 
doesnt work, this is why I posted this here.

Please help me.

-Kethlar
Comment 1 Joao S. O. Bueno 2005-05-31 05:53:16 UTC
First of all: 
 
bugzilla is no help forum -  
You formulated  a question - asking for help like this should be sent to the 
mailing lists, or to appropriate forums like gug.sunsite.dk, or 
www.rautu.unicamp.br/gimp (portuguese - but it is ok if you ask something in 
English there). 
 
There is an import palette option, by right clicking on the palettes dialog, 
which should allow the reading of GIMP palette files, RIFF and Photoshop ACT 
files (according to bug 158297 - I have not tired it myself) 
 
On the other hand, there is currently no way to import PSP palettes into the 
GIMP, and it would be a nice thing to be there. So it is fine to consider your 
entry as an enhacement request  - which I am doing now. 
 
And finally, the problem with the file formats you mention is that these 
softwares, having a politics of information retaining - opposed to information 
sharing as in Free Software projects like the GIMP - do not publicize the 
internal file organization for these palette files. That means that developers 
of other programs that want to use these files have to either find a reverse 
engineered spec for the files, or reverse engineer them thenselves. 
 
You can give a hand here, if you want this to show up in the GIMP - and start 
by looking for specs for PSP palette files (possibly the vendors of the 
software have it docuemented, but I doubt it) - point the specs here, if you 
find any - or help the developers to reverse engineer it. That may be done by 
attaching a simple  and a complex palette file here, and if you are able to, 
to take a look inside the files, and describe what you can figure out of it.  
 
 
Comment 2 Joao S. O. Bueno 2005-05-31 06:20:29 UTC
You are in luck today. 
.pal is a plain text format. I just have to figure out what the first number 
on the first line means, and porbably I will be able to hack the GIMP palette 
importing routines to work with it as well. 
Comment 3 Joao S. O. Bueno 2005-05-31 08:15:15 UTC
Created attachment 47059 [details] [review]
Implements importing of PSP palette files

Proposed patch implements reading of plain text JASC's Paint Shop Pro palette
files in a transparent way.
Comment 4 Joao S. O. Bueno 2005-05-31 08:17:07 UTC
Created attachment 47060 [details]
Sample PAL file for testing

Sample PSP PAL palette found in the WWWild - can be used for testing proposed
patch.

I had tested it with other files as well.
Comment 5 Sven Neumann 2005-05-31 10:35:05 UTC
Thanks for the patch.

2005-05-31  Sven Neumann  <sven@gimp.org>

	* app/core/gimppalette-import.c: applied patch from Joao
	S. O. Bueno Calligaris that adds support for loading PSP color
	palette files (bug #305956).
Comment 6 Kethlar 2005-05-31 13:03:49 UTC
Thank you very much I really do appreciate all the help.

Iam sorry I did a 'bug #305956' I hit the wrong key 'F5' and i refreshed it 
while it was in the post mode by accident, and I couldnt figure out how to 
remove the other bug request thingy.

Also I didnt knwo if it was an Interface Problem, or an Enhancement Request, 
beucase I didnt know if there really was a problem or if it was never 
implemented. Iam sorry.

As for the not saying the other programs names, I didnt know.  Some people dont 
know what the palette extentions were and I wanted to give as much information 
as possible.

Again Iam sorry for any problems, and I thank you so much for all your help.