|
|
@@ -35,7 +35,7 @@ function run_scan {
|
|
|
y=210
|
|
|
;;
|
|
|
A5R)
|
|
|
- x=210
|
|
|
+ x=210 # currently removed A5R because sane epson backend throws an out of memory error.
|
|
|
y=148
|
|
|
;;
|
|
|
esac
|
|
|
@@ -55,7 +55,7 @@ function run_scan {
|
|
|
jpg)
|
|
|
convert -quality 85 $tempname $filename | \
|
|
|
yad --progress --text="Converting to $3..." --width=300 --no-buttons --auto-close
|
|
|
- rm $tempname $tempname2
|
|
|
+ rm $tempname
|
|
|
;;
|
|
|
pdf)
|
|
|
if [[ $6 != "Lineart" ]] then
|
|
|
@@ -79,7 +79,7 @@ yad --form --orient=hor --maximized --width=750 --height=250 --columns=3 \
|
|
|
--field="Scan Folder:SFL" /mnt/public \
|
|
|
--field="Filename Prefix:SFL" scan \
|
|
|
--field="File format:CB" jpg\!png\!pdf \
|
|
|
- --field="Paper Size:CB" A4\!A5\!A5R \
|
|
|
+ --field="Paper Size:CB" A4\!A5 \
|
|
|
--field="Resolution (DPI):CB" 75\!^150\!300\!600\!1200 \
|
|
|
--field="Scan Buttons:BTN" "" \
|
|
|
--field="Colour:FBTN" 'bash -c "run_scan %1 %2 %3 %4 %5 Color"' \
|