Importing named color palette

Here everybody can post his problems with PhotoLine
evren
Mitglied
Beiträge: 140
Registriert: Mi 04 Dez 2013 05:48

Importing named color palette

Beitrag von evren »

I'd like to create my own color palette including w3c names and pantone/ral codes..
Could anyone help me to understand Photoline's .pal format ?

How Photoline handle is;

Code: Alles auswählen

COLORxx = v3  1   255,1.00   128,0.50   255,1.00   255,1.00   0,0.00   name
I can locate the RGB inside with ease, but I don't know what are the other values?
I can create list in any order and any form in CSV like format.
Hope to be able to do. And sure I'll also share with all, even no need to ask.

Regards to all

Edit: Also will include about 10 - 12 tones skin colors. Any suggestion welcomes.
Zuletzt geändert von evren am Di 27 Mai 2014 05:21, insgesamt 4-mal geändert.
evren
Mitglied
Beiträge: 140
Registriert: Mi 04 Dez 2013 05:48

Re: Importing named color palette

Beitrag von evren »

Getting more and more confused. The PL's data structure is like that

Code: Alles auswählen

COLOR287""=""v3"   1   255-1.00   255-1.00   255-1.00   255-1.00   000-0.00  (pure white...)
When we cleanup the percentage's to make more plain;

Code: Alles auswählen

             x*    y*   R     G     B     ?*   ?*
COLOR287""=""v3"   1   255   255   255   255   0  (pure white...)
x: Doesn't matter since never changes
y: All 1 except GRAY TONES takes 0. -Can someone help me on, why needed?
?: The last 2 parameters. They only differ in MAIN colors and GRAY TONES. -What are those?

And I seriously confused between;

Code: Alles auswählen

Color 2   = 255	255	 53	125	64   [Displays hex value #FFFFFF]
Color 287 = 255	255	255	255	 0   [Displays hex value #FFFFFF]
Now, normally the #FFFFFF = 255 255 255, but in color 2 even the RGB value has changed.
So it shows that the last two parameter (that I tagged with ?) are something balancing this issue. Or whatever...

Seems I can not even try without figuring out last 2 parameter.
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

Re: Importing named color palette

Beitrag von photoken »

evren hat geschrieben:I'd like to create my own color palette. Could anyone help me on how to handle PL's .pal format or a proper way (CSV order) to import colors including names.
How are you creating the palette?

Can you simply create it directly in PL?

Can you create the palette directly in Photoshop or Photoshop Elements? I don't have PSE installed any more, but I seem to recall that its colour palettes can be saved as Adobe .ACO and .ASE files, which PL can import.
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
evren
Mitglied
Beiträge: 140
Registriert: Mi 04 Dez 2013 05:48

Re: Importing named color palette

Beitrag von evren »

How I'll create is completely manual.

Photoline uses an open format like CSV as I wrote above. Do not use "hexadecimal like" bloat as adobe do. So you can do it manually with an advanced text editor. But needs something really advanced like sublimetext etc.

And yes, If you need just to add your own colors, you can create it with PL. Just pick on screen or create it on color editor tab. After open color list [view > list > color list] after take the color from color field in "toolbox" tab and drag&drop to the color list. After, click on an empty space of color list and click save. On context menu you will also see load and merge options. ACO can import, ASE don't know.

But any of those doesn't solve my problem. When you hover on a color it shows you a tooltip. If there is a name it shows name, if no shows hex value. What I need is to show websafe list name + hex + pantone or ral (if possible) So I must to match RGB's of palette with names list, syncronize in rows and add names field etc. And also want to change order of top 2 lines and add skin color list.

So I had to deal with CSV+text editor. Will take about 2 hours even with the 5 years data mining experience. But I'll do somehow.
Benutzeravatar
Gerhard Huber
Entwickler
Entwickler
Beiträge: 4276
Registriert: Mo 18 Nov 2002 15:30
Wohnort: Bad Gögging

Re: Importing named color palette

Beitrag von Gerhard Huber »

How Photoline handle is;

Code: Alles auswählen

    a     b   c      d          e          f          g          h      i
COLORxx = v3  1   255,1.00   128,0.50   255,1.00   255,1.00   0,0.00   name
  • a: is the index of the color
  • b: v3 means version3, version2 for example, is without float values
  • c: color mode, 0: gray, 1 RGB, 2 CMYK, 3 Bitmap, 10 HIS, 11 HSV, 12 Lab
  • d - h: always 4 color values
    depending on the color mode, some of the color values are unused
    RGB, 3 values are used, the 4th is the opacity
    Gray, 1 value is used, the 2nd is the opacity
  • i: name of the color
Gerhard
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

Re: Importing named color palette

Beitrag von photoken »

evren hat geschrieben:So I had to deal with CSV+text editor. Will take about 2 hours even with the 5 years data mining experience. But I'll do somehow.
Sounds like that would be better done in Excel, which can import a delimited text file -- you can specify the incoming delimiter that's used. Then Excel can sort the entire list on any column's values, as well as move rows, etc., and export to a delimited text file. Just a suggestion....
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Benutzeravatar
Hoogo
Beta Tester
Beiträge: 4169
Registriert: So 03 Jul 2005 13:35
Wohnort: Deutschland

Re: Importing named color palette

Beitrag von Hoogo »

Excel is sometimes too clever in detecting dates, it turns 04-3005 into some crap.
And the separator depends on global settings for countries, semicolon in Germany.
----------------
Herr Doktor, ich bin mir ganz sicher, ich habe Atom! /Doctor, doctor, I'm sure, I've got atoms!
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

Re: Importing named color palette

Beitrag von photoken »

Hoogo hat geschrieben:And the separator depends on global settings for countries, semicolon in Germany.
At least in Windows, you can change the delimiter used for the exported text file, as shown in this video:
http://www.youtube.com/watch?v=RM6L8sRIPpU
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Benutzeravatar
Hoogo
Beta Tester
Beiträge: 4169
Registriert: So 03 Jul 2005 13:35
Wohnort: Deutschland

Re: Importing named color palette

Beitrag von Hoogo »

Yes, region settings, didn't know how it was called in the English version of windows.
----------------
Herr Doktor, ich bin mir ganz sicher, ich habe Atom! /Doctor, doctor, I'm sure, I've got atoms!
evren
Mitglied
Beiträge: 140
Registriert: Mi 04 Dez 2013 05:48

Re: Importing named color palette

Beitrag von evren »

Gerhard Huber hat geschrieben:
  • a: is the index of the color
  • b: v3 means version3, version2 for example, is without float values
  • c: color mode, 0: gray, 1 RGB, 2 CMYK, 3 Bitmap, 10 HIS, 11 HSV, 12 Lab
  • d - h: always 4 color values
    depending on the color mode, some of the color values are unused
    RGB, 3 values are used, the 4th is the opacity
    Gray, 1 value is used, the 2nd is the opacity
  • i: name of the color
Gerhard
Thanks Mr Huber it's pretty clear to understand. Just one question left. Can I assign all color with RGB or those MAIN COLOR and GRAY TONE or those needs to be added as they are on PL's own list?
Does it effect something hidden behind? All RGB possible?
photoken hat geschrieben:Sounds like that would be better done in Excel, which can import a delimited text file -- you can specify the incoming delimiter that's used. Then Excel can sort the entire list on any column's values, as well as move rows, etc., and export to a delimited text file. Just a suggestion....
You have a better sort (multi step) capability in excel. All other functions possible in an advanced text editor. But to match my list and PL's list excel is obligated. Sure I had to use. But no export from excel since finalization needs control. It will be on text editor. Thanks
Hoogo hat geschrieben:Excel is sometimes too clever in detecting dates, it turns 04-3005 into some crap.
And the separator depends on global settings for countries, semicolon in Germany.
You can define all those in import dialog. Can be under control. The most important problem of it is lacking characterset handling. UTF-8 can become a crap. And date conversation can also be changed after import. And sure need to be careful about seperator type. How I handle is to take everything as text. Text means "hey excel do not think, just process"
Thanks for all. After to be sure about gray tones and main colors type of definition, all will be ready for me. Next challenge will be batch cross conversation of codes to get pantone codes. Will start to deal in evening. Hope to complete and share with all.

All bests
Benutzeravatar
Gerhard Huber
Entwickler
Entwickler
Beiträge: 4276
Registriert: Mo 18 Nov 2002 15:30
Wohnort: Bad Gögging

Re: Importing named color palette

Beitrag von Gerhard Huber »

evren hat geschrieben:Can I assign all color with RGB or those MAIN COLOR and GRAY TONE or those needs to be added as they are on PL's own list?
Does it effect something hidden behind? All RGB possible?
yes, if you want, you can define all colors as RGB.

Gerhard
evren
Mitglied
Beiträge: 140
Registriert: Mi 04 Dez 2013 05:48

It's out now

Beitrag von evren »

I opened a topic to share my result, but forget to inform in here.
Thanks to details given by Gerhard, it's finished and I'm using with my smileys. Anyone wants to try, here is the link of share in forum.
http://www.pl32.com/forum3/viewtopic.php?f=3&t=4223