Wesley
Wesley copied to clipboard
Suggestion: jpentran -copy value as argument
Hi,
I found your script very useful, but had one small suggestion... I would like to keep the EXIF info on larger files, but strip it from thumbnails, so I made the following change:
root@stingray:/home/jsmoriss/tmp/Wesley-master$ diff /usr/local/bin/wesley.pl wesley.pl
59d58
< use Getopt::Long;
82,88d80
< my %opt = (
< 'copy' => 'all',
< );
<
< GetOptions(\%opt,
< 'copy=s',
< );
167c159
< `$jpegtran_path -copy $opt{'copy'} -optimize "$_" > "$_.opt"`;
---
> `$jpegtran_path -copy none -optimize "$_" > "$_.opt"`;
170c162
< `$jpegtran_path -copy $opt{'copy'} -progressive "$_" > "$_.prog"`;
---
> `$jpegtran_path -copy none -progressive "$_" > "$_.prog"`;
Thanks,
js.