Image-Magick-CommandParser
view release on metacpan or search on metacpan
lib/Image/Magick/CommandParser.pm view on Meta::CPAN
=head2 What is the format of stack items?
They are hashrefs, with these keys:
=over 4
=item o token
This is the token extracted from the command line.
Note: In the cases of file globbing and redirection of input from a file, these tokens are I<after>
expansion of such items.
=item o type
This is my classification of the type of token detected. The values taken by C<type> are:
=over 4
=item o action
=item o close_parenthesis
=item o command
=item o done
In this case, the C<token> will be the empty string.
=item o input_file
This is used for both explicit file names and for each file name produced by expanding globs.
=item o open_parenthesis
=item o output_file
=item o operator
=item o parameter
=back
=back
=head2 Why do you use pairs of states such as 'action' and 'action_1'?
The way L<Set::FA::Element> was designed, it will not move from a state to the same state when the
input matches. So, to trigger the entry or exit subs, I have to rock back-and-forth between 2
states which are more-or-less identical.
=head1 Trouble-shooting
=head2 Installation failure
I had a failure when installing the module on my laptop for the 1st time. The problem was that,
somehow, during the installation of L<Image::Magick>, root had become the owner of a directory
under the control of perlbrew. To fix this, I had to do:
sudo chown ron:ron /home/ron/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/x86_64-linux/auto/Image/Magick
=head2 Regions specified as '@100000' are not supported
So, you must put the '@' at the end of the region:
convert magick:logo -resize '10000@' wiz10000.png
=head2 Frame references are not supported
So, this won't work:
convert 'images.gif[0]' image.png
=head1 See Also
L<Imager>
L<Image::Magick::Chart>
L<Image::Magick::PolyText>
L<Image::Magick::Tiler>
L<Set::Array>
L<Set::FA::Element>
=head1 Machine-Readable Change Log
The file Changes was converted into Changelog.ini by L<Module::Metadata::Changes>.
=head1 Version Numbers
Version numbers < 1.00 represent development versions. From 1.00 up, they are production versions.
=head1 Repository
L<https://github.com/ronsavage/Image-Magick-CommandParser>
=head1 Support
Email the author, or log a bug on RT:
L<https://rt.cpan.org/Public/Dist/Display.html?Name=Image::Magick::CommandParser>.
=head1 Author
C<Image::Magick::CommandParser> was written by Ron Savage I<E<lt>ron@savage.net.auE<gt>> in 2016.
My homepage: L<http://savage.net.au/>
=head1 Copyright
Australian copyright (c) 2016, Ron Savage.
All Programs of mine are 'OSI Certified Open Source Software';
you can redistribute them and/or modify them under the terms of
The Perl License, a copy of which is available at:
http://dev.perl.org/licenses/
( run in 1.209 second using v1.01-cache-2.11-cpan-71847e10f99 )