App-ImageMagickUtils
view release on metacpan or search on metacpan
script/convert-image-to-jpg view on Meta::CPAN
#!perl
# Note: This script is a CLI for Riap function /App/ImageMagickUtils/convert_image_to_jpg
# and generated automatically using Perinci::CmdLine::Gen version 0.502
use 5.010001;
use strict;
use warnings;
use Log::ger;
use Perinci::CmdLine::Any;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2024-12-21'; # DATE
our $DIST = 'App-ImageMagickUtils'; # DIST
our $VERSION = '0.024'; # VERSION
my $cmdline = Perinci::CmdLine::Any->new(
url => "/App/ImageMagickUtils/convert_image_to_jpg",
program_name => "convert-image-to-jpg",
log => 1,
log_level => "info",
read_config => 0,
read_env => 0,
);
$cmdline->run;
# ABSTRACT: Convert images to JPG using ImageMagick's 'convert' utility
# PODNAME: convert-image-to-jpg
__END__
=pod
=encoding UTF-8
=head1 NAME
convert-image-to-jpg - Convert images to JPG using ImageMagick's 'convert' utility
=head1 VERSION
This document describes version 0.024 of convert-image-to-jpg (from Perl distribution App-ImageMagickUtils), released on 2024-12-21.
=head1 SYNOPSIS
B<convert-image-to-jpg> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)
B<convert-image-to-jpg> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)
B<convert-image-to-jpg> [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbose">>] [B<L<--delete-original|/"--delete-original, -D">>|B<L<-D|/"--delete-original...
=head1 DESCRIPTION
This is a wrapper to C<convert-image-to>, with C<--to> set to C<jpg>:
% convert-image-to-pdf *.png
is equivalent to:
% convert-image-to --to jpg *.png
which in turn is equivalent to:
% for f in *.png; do convert "$f" "$f.jpg"; done
=head1 OPTIONS
C<*> marks required options.
=head2 Main options
=over
=item B<--delete-original>, B<-D>
Delete (unlink) the original file after downsizing.
See also the C<trash_original> option.
=item B<--file>=I<s@>*
(No description)
Can also be specified as the 1st command-line argument and onwards.
Can be specified multiple times.
=item B<--files-json>=I<s>
See C<--file>.
Can also be specified as the 1st command-line argument and onwards.
=item B<--quality>=I<s>, B<-q>
Quality setting (for JPEG/PNG), 1 (best compression, worst quality) to 100 (least compression, best quality).
Default value:
92
=item B<--trash-original>, B<-T>
Trash the original file after downsizing.
This option uses the L<File::Trash::FreeDesktop> module to do the trashing.
Compared to deletion, with this option you can still restore the trashed
original files from the Trash directory.
See also the C<delete_original> option.
=back
=head2 Logging options
=over
=item B<--debug>
Shortcut for --log-level=debug.
( run in 1.237 second using v1.01-cache-2.11-cpan-df04353d9ac )