App-imgsize
view release on metacpan or search on metacpan
script/imgsize view on Meta::CPAN
You can put multiple profiles in a single file by using section names like C<[profile=SOMENAME]> or C<[SOMESECTION profile=SOMENAME]>. Those sections will only be read if you specify the matching C<--config-profile SOMENAME>.
You can also put configuration for multiple programs inside a single file, and use filter C<program=NAME> in section names, e.g. C<[program=NAME ...]> or C<[SOMESECTION program=NAME]>. The section will then only be used when the reading program match...
You can also filter a section by environment variable using the filter C<env=CONDITION> in section names. For example if you only want a section to be read if a certain environment variable is true: C<[env=SOMEVAR ...]> or C<[SOMESECTION env=SOMEVAR ...
To load and configure plugins, you can use either the C<-plugins> parameter (e.g. C<< -plugins=DumpArgs >> or C<< -plugins=DumpArgs@before_validate_args >>), or use the C<[plugin=NAME ...]> sections, for example:
[plugin=DumpArgs]
-event=before_validate_args
-prio=99
[plugin=Foo]
-event=after_validate_args
arg1=val1
arg2=val2
which is equivalent to setting C<< -plugins=-DumpArgs@before_validate_args@99,-Foo@after_validate_args,arg1,val1,arg2,val2 >>.
List of available configuration parameters:
detail (see --detail)
filenames (see --filename)
format (see --format)
naked_res (see --naked-res)
=head1 ENVIRONMENT
=head2 IMGSIZE_OPT
String. Specify additional command-line options.
=head1 FILES
=head2 /home/u1/.config/imgsize.conf
=head2 /home/u1/imgsize.conf
=head2 /etc/imgsize.conf
=head1 EXAMPLES
=head2 Example #1
% imgsize foo.jpg
640x480
=head2 Example #2
% imgsize foo.jpg --detail
+----------+----------+-------+--------+----------+
| filename | filesize | width | height | res_name |
+----------+----------+-------+--------+----------+
| foo.jpg | 23844 | 640 | 480 | VGA |
+----------+----------+-------+--------+----------+
=head2 Example #3
% imgsize foo.jpg bar.png baz.txt
+----------+----------+-------+--------+----------+
| filename | filesize | width | height | res_name |
+----------+----------+-------+--------+----------+
| foo.jpg | 23844 | 640 | 480 | VGA |
| bar.png | 87374 | 400 | 200 | |
| baz.txt | 2393 | 0 | 0 | |
+----------+----------+-------+--------+----------+
=head1 HOMEPAGE
Please visit the project's homepage at L<https://metacpan.org/release/App-imgsize>.
=head1 SOURCE
Source repository is at L<https://github.com/perlancar/perl-App-imgsize>.
=head1 SEE ALSO
L<calc-image-resized-size>.
L<pdfsize>.
=head1 AUTHOR
perlancar <perlancar@cpan.org>
=head1 CONTRIBUTING
To contribute, you can send patches by email/via RT, or send pull requests on
GitHub.
Most of the time, you don't need to build the distribution yourself. You can
simply modify the code, then test via:
% prove -l
If you want to build the distribution (e.g. to try to install it locally on your
system), you can install L<Dist::Zilla>,
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>,
L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond
that are considered a bug and can be reported to me.
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2024, 2020, 2016 by perlancar <perlancar@cpan.org>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-imgsize>
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
=cut
( run in 0.585 second using v1.01-cache-2.11-cpan-788537b7465 )