diff --git a/changelog b/changelog index 1eb5164..9e37388 100644 --- a/changelog +++ b/changelog @@ -4,6 +4,10 @@ GNU Public License v3 Copyright 2012-2013 Aurélien PIERRE aurelien@aurelienpierre.com +*** v1.0 final *** + +- Remove Gzip compression of the PDF file + *** v1.0-beta *** - Ability to save a PDF copy of the generated file after sending diff --git a/scan2thunderbird.conf b/scan2thunderbird.conf old mode 100755 new mode 100644 diff --git a/scan2thunderbird.lang b/scan2thunderbird.lang old mode 100755 new mode 100644 diff --git a/scan2thunderbird.sh b/scan2thunderbird.sh old mode 100755 new mode 100644 index e48734a..6ff88bf --- a/scan2thunderbird.sh +++ b/scan2thunderbird.sh @@ -142,7 +142,6 @@ rescan() { clean() { shred -n 35 -z -u /tmp/$name-*.tiff shred -n 35 -z -u /tmp/$name-*.jpeg - shred -n 35 -z -u /tmp/$name.pdf.gz shred -n 35 -z -u /tmp/$name*.pdf } @@ -258,14 +257,9 @@ quit "$?" --auto-close quit "$?" - # Compress the PDF file - - cp /tmp/$name.pdf /tmp/$name-2.pdf - gzip --best -f /tmp/$name.pdf - # Check file weight - FILESIZE=$(stat -c%s "/tmp/$name.pdf.gz") + FILESIZE=$(stat -c%s "/tmp/$name.pdf") qual=$quality @@ -281,10 +275,7 @@ quit "$?" rescan "$min_resolution" "$min_crop" "$pages" "$couleur" "$qual" merge "$min_resolution" "$min_crop" "$pages" "$couleur" "$qual" - cp /tmp/$name.pdf /tmp/$name-2.pdf - gzip --best -f /tmp/$name.pdf - - FILESIZE=$(stat -c%s "/tmp/$name.pdf.gz") + FILESIZE=$(stat -c%s "/tmp/$name.pdf") qual=$(($qual-1)) done @@ -292,7 +283,7 @@ quit "$?" # Preview and send evince /tmp/$name-2.pdf & - thunderbird -compose "to='',subject='',body='$txt9',attachment='file:///tmp/$name.pdf.gz'" + thunderbird -compose "to='',subject='',body='',attachment='file:///tmp/$name.pdf'" wait $! while [ ps -p $! ] @@ -307,7 +298,6 @@ quit "$?" if [ "$?" -eq "0" ]; then file=`zenity --file-selection --save --filename=/$HOME/$USER/ --title="$txt25 ?"` - cp /tmp/$name-2.pdf /$file.pdf clean else clean