goxel icon indicating copy to clipboard operation
goxel copied to clipboard

Support of colour palettes in .ase format

Open YarlBoro opened this issue 7 years ago • 14 comments

Adobe ASE format is common for exchange palettes between graphic design apps and colour palette creation software. Support for loading ASE files would improve colour management in Goxel. Maybe there could be 'Palettes' folder, from which Goxel would load all ASE palettes and add them to ones that are built-in. Here are materials that might be useful while evaluating and (maybe) implementing this feature:

Unofficial format spec (for details of format, scroll below table)
http://www.selapa.net/swatches/colors/fileformats.php

Existing implementations http://www.colourlovers.com/ase.phps https://github.com/hughsk/adobe-swatch-exchange https://github.com/andrewfiorillo/ase-to-sketchpalette/tree/master/js

YarlBoro avatar Apr 25 '17 21:04 YarlBoro

OK, I'll try to add this in the future.

guillaumechereau avatar Apr 26 '17 03:04 guillaumechereau

Thanks!

YarlBoro avatar Apr 26 '17 08:04 YarlBoro

I added support for a 'palettes' directory where we can put 'gpl' palettes. On mac the path would be "/users/yourname/Library/Application Support/Goxel/palettes/"

I haven't checked the ASE format yet though. Any source to a C implementation of a loader?

guillaumechereau avatar Aug 01 '17 07:08 guillaumechereau

Thank you, this will come in handy! I’ve found this page: http://carl.camera/default.aspx?id=109

I think it’s more compact discription of ASE spec, than in links that I posted earlyer. I’ll keep on looking for C implementation of loader.

YarlBoro avatar Aug 01 '17 17:08 YarlBoro

Where can i find a list of palette formats currently supported by Goxel?

axredneck avatar May 21 '19 01:05 axredneck

I think you can only use Gimp *.gpl and Build Engine *.dat files

YarlBoro avatar May 26 '19 22:05 YarlBoro

Yes, for the moment. Do you need other formats?

guillaumechereau avatar May 27 '19 05:05 guillaumechereau

Since Axredneck seem to be absent...I request again ASE format or/and loading palette from PNG. Thank You!

YarlBoro avatar May 28 '19 16:05 YarlBoro

I'm not absent i thought he asks you, not me. Loading palette from indexed .png would be good though anybody can extract palette from indexed .png with Gimp and save it as .gpl. For me .gpl and .dat are currently enough.

axredneck avatar May 28 '19 17:05 axredneck

I thought this is question to both of us. Palettes- yes, that is true. Less convenient, but perfectly fine method.

YarlBoro avatar May 28 '19 17:05 YarlBoro

Loading palette from indexed png would be especially needed when importing such png.

axredneck avatar May 29 '19 19:05 axredneck

I just added support for png palettes. It should work by adding any png file into the palettes folder. Let me know if that doesn't work.

guillaumechereau avatar Jun 01 '19 11:06 guillaumechereau

Very useful addition, thanks! I will try later to compile latest version and will get back with results.

YarlBoro avatar Jun 01 '19 12:06 YarlBoro

Seem to work perfectly. I used couple of PNGs and they were used as palettes in Goxel. No issues so far. Thanks again!

YarlBoro avatar Jun 02 '19 14:06 YarlBoro