App-imgsize
view release on metacpan or search on metacpan
res_name => "VGA",
},
],
{
"table.fields" => ["filename", "filesize", "width", "height", "res_name"],
},
]
* Example #3:
imgsize(filenames => ["foo.jpg", "bar.png", "baz.txt"]);
Result:
[
200,
"OK",
[
{
filename => "foo.jpg",
filesize => 23844,
width => 640,
height => 480,
res_name => "VGA",
},
{
filename => "bar.png",
filesize => 87374,
width => 400,
height => 200,
res_name => undef,
},
{
filename => "baz.txt",
filesize => 2393,
width => 0,
height => 0,
lib/App/imgsize.pm view on Meta::CPAN
test => 0,
},
{
args => {filenames => ['foo.jpg'], detail=>1},
result => [200, "OK", [
{filename => 'foo.jpg', filesize => 23844, width => 640, height => 480, res_name => "VGA"},
], $res_meta],
test => 0,
},
{
args => {filenames => ['foo.jpg', 'bar.png', 'baz.txt']},
result => [200, "OK", [
{filename => 'foo.jpg', filesize => 23844, width => 640, height => 480, res_name => "VGA"},
{filename => 'bar.png', filesize => 87374, width => 400, height => 200, res_name => undef},
{filename => 'baz.txt', filesize => 2393, width => 0, height => 0, res_name => undef},
], $res_meta],
test => 0,
},
],
links => [
{url=>'prog:calc-image-resized-size'},
{url=>'prog:pdfsize'},
],
};
lib/App/imgsize.pm view on Meta::CPAN
res_name => "VGA",
},
],
{
"table.fields" => ["filename", "filesize", "width", "height", "res_name"],
},
]
=item * Example #3:
imgsize(filenames => ["foo.jpg", "bar.png", "baz.txt"]);
Result:
[
200,
"OK",
[
{
filename => "foo.jpg",
filesize => 23844,
width => 640,
height => 480,
res_name => "VGA",
},
{
filename => "bar.png",
filesize => 87374,
width => 400,
height => 200,
res_name => undef,
},
{
filename => "baz.txt",
filesize => 2393,
width => 0,
height => 0,
script/imgsize view on Meta::CPAN
% 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>.
( run in 1.647 second using v1.01-cache-2.11-cpan-788537b7465 )