Jump to content
Sign in to follow this  
PixelPerfect

100% image viewers support by using .af.png file format

Recommended Posts

Affinity files have previews, those previews are limited to 512x512 what is, to tell the truth, is not enough, also those previews are not displayed by operation system by default.

Some projects i'm working  on (UI-design) have hundreds of source files, and it is impractical to recognize those files only by filename or even lo-res preview :(

I really love approach Macromedia took with Fireworks file format, they made it so source-data appended to a png image file
all image viewers and file browsers recognize it as a picture and show high-resolution preview,
but editor knows that besides preview there is a source-data, and when you open that png in editor it is actually a vector source file

To remove confusion which png file is a flat raster image and which is a source file, extension suffix can be used kind of .af.png

A bit of technical details:
This is possible because of the patent-free nature of the PNG format, and it's chunk-based storage layer structure.
Data in png file is stored in "Chunks", chunks declare themselves as critical or ancillary, and a program encountering an ancillary chunk that it does not understand can safely ignore it.
So it is possible to put native affinity source file data into such chunk. Png serves as a container with nice cover image.

And what is the best part of this approach is this is very simple to implement - you get the best support by all image viewers, by simply gluing 2 files together.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | 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.