So pixelnook has a script that converts an image's color palette (if the image is a 256 indexed color image) and saves it as a palette.
Someone on the forums wanted a script that would convert the .pal and .psppalette files to swatches. That's what I've attempted here.
The code is quite ugly but should get the job done. The accompanying video also shows some of the bugs/issues with the script.
You can watch that video here: https://drive.google.com/a/trinitybible ... laUDg/view
You can download the script here: https://drive.google.com/file/d/0B8FlFL ... sp=sharing
Quick note - the script must be saved to your Scripts-Trusted folder as it accesses your Harddrive and imports several support libraries to work.
Palette To Swatch Conversion
Moderator: Kathy_9
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Palette To Swatch Conversion
Last edited by LeviFiction on Sun Jan 03, 2016 5:20 pm, edited 1 time in total.
https://levifiction.wordpress.com/
-
dejudicibus
- Posts: 44
- Joined: Thu Mar 03, 2011 7:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- Contact:
Re: Palette To Swatch Conversion
LeviFiction, I really appreciate what you did. In particular, the video is really a helpful add-on to the script. It is not a problem that the script is not perfect or has some bug since once you know how to use it, it does what we expect. Thank you very much.
-
dejudicibus
- Posts: 44
- Joined: Thu Mar 03, 2011 7:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- Contact:
Re: Palette To Swatch Conversion
I just have a problem to run the script (it's in TRUSTED folder, of course). It cannot find Tkinter in
from Tkinter import *
It looks like PSP does not know in PSP X8 where are the python libraries. Any idea?
from Tkinter import *
It looks like PSP does not know in PSP X8 where are the python libraries. Any idea?
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Palette To Swatch Conversion
There should be no differences between your X8 and my X8.
You can try changing the Tkinter line to tkinter. Python is case sensitive but PSP is using version 2.7 so the naming should be correct.
Can you post the exact error you're getting?
You can try changing the Tkinter line to tkinter. Python is case sensitive but PSP is using version 2.7 so the naming should be correct.
Can you post the exact error you're getting?
https://levifiction.wordpress.com/
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Palette To Swatch Conversion
Quick edit: I've updated the conversion tool to include GIMP palette files as an option. GIMP palette files include names for each individual swatch. You can either use or ignore these names with the "GIMP Swatch Name" checkbox.
https://levifiction.wordpress.com/
