Color::Swatch::ASE::Reader - Low-Level ASE (Adobe Swatch Exchange) File decoder
version 0.001002
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
read_file
my $hash = CSASE::Reader->read_file("path/to/file.ase");
read_filehandle
my $hash = CSASE::Reader->read_filehandle($fh);
read_string
my $hash = CSASE::Reader->read_string($string);
Kent Fredric <kentfredric@gmail.com>
This software is copyright (c) 2014 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Color::Swatch::ASE::Reader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Color::Swatch::ASE::Reader
CPAN shell
perl -MCPAN -e shell install Color::Swatch::ASE::Reader
For more information on module installation, please visit the detailed CPAN module installation guide.