Import Kuler (ASE) palettes

Import Kuler palettes into GIMP 2.6.

Palettes Dock -> Menu -> Palettes Menu -> Import Kuler palette...

This plug-in requires Python.  Also, make sure that the .py file is executable! If you have already installed previous version of the plug-in, you must remove the old version.

Should now correctly handle RGB and La*b* palettes. Also, basic support is there for CMYK palettes - however, the CMYK conversion is not 100% accurate.  One or more of your RGB values may be 1 less than what is specified in the Kuler interface.

Tested with GIMP 2.6.1 under Ubuntu 8.04 and Win XP. Reported to work under OS X Leopard.

EDIT: please see this link for a python program that does palette conversions:
https://gna.org/projects/swatchbooker

AttachmentSize
convert_ASE_to_GPL-0.4.py11.11 KB
0

Comments

Doesn't seem to generate the .gpl file

Gimp 2.6.1 on Ubuntu Linux. Installed the .py file to .gimp-2.6/plug-ins/, made it executable. I get errors like this when I import a kuler palette: "Error: Could not import any colors from the file /home/.../.gimp-2.6/palettes/whatever.gpl." which is most definitely true because there is no whatever.gpl in that particular folder. Can't seem to find it in another location, either. Any hints?

OK - it seems kuler changed

OK - it seems kuler changed the ASE file format? In addition, that was a bug on my part - the error should have been "No colors found in the whatever.ase file.". Chris

Status on Plugin?

I can't get the plugin to work. Is there still a problem with the file format? I did write a quick Ruby script that does the translation, using similar techniques in the plugin. One issue I found was that the swatch info was spread out over multiple lines for some ase files. Line 4 sucks in the whole file, removes CR/LF and puts it all back into on big string. usage is.... convert_ase_to_gpl.rb file.ase > file.gpl 1 #!/usr/bin/ruby 2 3 name = ARGV[0] 4 content = IO.readlines( name ).collect{ |x| x.chomp }.join 5 6 seperator = "\000\001\000\000" 7 8 swatches = content.split(seperator) 9 10 puts "GIMP Palette" 11 puts "Name: #{swatches[1].gsub(/\W/,'')}" 12 13 swatches.each do |swatch| 14 part = swatch.split(' ',2) 15 if part.first.match( /RGB?/ ) 16 red,green,blue= part.last.unpack('g*').collect{ |rgb| (rgb * 255).round } 17 printf("%d %d %d 0x%02x%02x%02x\n", red,green,blue, red,green,blue) 18 end 19 end Regards, Mike

I just imported one and it

I just imported one and it worked. Just to clarify - I never got around to decoding the ASE format as used by Photoshop and Illustrator. Both of those programs allow "color groups" and it was becoming a total PITA. So, only Kuler palettes are supported. Anyway, can you post a link to the palette that is not working for you? Perhaps I can incorporate your CF/LF technique. Chris

Wow, very nice! Daniel

Wow, very nice! Daniel Saltman BostonDan@gmail.com

Executable...?

How do I make the .py script executable?

Thank You

This plug-in is great...... ...just be sure to make the script executable =)

OSX Leopard is ok, but...

Hi, I've just tried to open .ase from kuler with your plug-in with Gimp 2.4.6 running on Leopard and it works great. You did a really good job. But the question is: why does this plug-in only open .ase from kuler? Not .ase from Colourlovers.com nor Photoshop itself? Thanks in advance, FeIZocE

Non-Kuler palettes

All I could find was a reverse-engineer of the ASE file format. Adobe does not provide a specification. If enough people bugged them about it (hint, hint), they probably would publish the spec. Chris
Syndicate content