Jump to content
You must now use your email address to sign in [click for more info] ×

afpalette Format & various (?) issues


Recommended Posts

This is a two-fold question:

1. Is there a way to get my hands into the afpalette file format specification instead of reverse engineering it? I'm doing graphics for a "new" retro system called ZX Spectrum Next that has 9bit colour capabilities but can only display 256 colours at a time. I have a special program that generates palettes (in 24bit RGB format) for Photoshop, ASE, RIFF and I would like to add the capability to export to Affinity Photo. I've found an intermediate "hack-y" way to include a complete palette into AP as a last ditch effort before reverse engineering an afpalette and that was to make a fake "Pantone" csv color list. That worked as seen in the attached screenshot but the resulting afpalette cannot be saved if I try "export"... which brings me to the second question;

2. Is the afpalette file capable of storing more than 256 colours? The aforementioned hack generated a 512 colour palette (which is what I need obviously) but although AP says it's saving a palette, it won't. However if I add arbitrarily colors to a clean swatch palette (three or four - did not try more) it saves an afpalette without an apparent problem.

Any help to either 1. or 2?

 

62166720_1267739573406164_8624548132870422528_n.png

Link to comment
Share on other sites

  • 4 weeks later...
  • 10 months later...

I can’t understand why something as simple as a swatch file would need to be propriety?

Surely it would be better if people could easily find out how to write to a .afpalette format - this would mean that more colour app related developers would be able to inlcude affinity products, as opposed to exclude it?

High-End Photographic Prints

 

 

Link to comment
Share on other sites

9 hours ago, Richard S. said:

I can’t understand why something as simple as a swatch file would need to be propriety?

If you mean *.afpalette files that the Affinity apps can import & export, my guess is the format is proprietary because it is designed specifically to support all the swatch types the Affinity apps can support, including mixes of multiple kinds of gradients (linear, elliptical, radial, conical, & bitmap), some with many different color stops, plus simple uniform colors; & also to make it possible to parse their contents with minimal overhead.

IOW, they are not simple swatch files.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.