Wesley icon indicating copy to clipboard operation
Wesley copied to clipboard

Suggestion: jpentran -copy value as argument

Open jsmoriss opened this issue 12 years ago • 0 comments

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.

jsmoriss avatar Dec 29 '12 16:12 jsmoriss