Color::Swatch::ASE::Reader - Low-Level ASE (Adobe Swatch Exchange) File decoder
version 0.001005
use Color::Swatch::ASE::Reader;
my $hash = Color::Swatch::ASE::Reader->read_file(q[./myfile.ase]);
print Dumper($hash);
# {
# signature => 'ASEF',
# version => [ 1, 0 ],
# blocks => [
# { type => 'group_start', group => 13, label => "My Swatch" },
# { type => 'color',
# group => 1, label => "Some Shade",
# model => 'RGB ', values => [ 0.9, 0.8, 0.7 ], color_type => 2 },
# { type => 'group_end' },
# ]
# }
This at present is very low-level simple structure decoding, and is probably not useful to most people.
Its based on the reverse-engineered specification of Adobe™'s "Swatch Exchange" format, which can be found documented many places:
- selpa.net: file formats
- colourlovers.com: ase file maker
- forums.adobe.com: ase file format reverse engineering
my $hash = CSASE::Reader->read_file("path/to/file.ase");
my $hash = CSASE::Reader->read_filehandle($fh);
my $hash = CSASE::Reader->read_string($string);
Kent Fredric [email protected]
This software is copyright (c) 2017 by Kent Fredric [email protected].
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.