Просмотр исходного кода

Default to XYZ PCS ICC input profile

Weiyi Lou 1 месяц назад
Родитель
Сommit
fa76ddf76d
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      scan-dialog

+ 4 - 4
scan-dialog

@@ -79,9 +79,9 @@ function run_scan {
 
   options=""
   [[ $landscape == true ]] && options="${options} -rotate 90"
-  [[ $icc == "Profile1" ]] && options="${options} -profile /home/cinaeco/scan-dialog/scanner-as.icm"
-  [[ $icc == "Profile2" ]] && options="${options} -profile /home/cinaeco/scan-dialog/scanner-ax.icm"
-  [[ $icc == "Profile3" ]] && options="${options} -profile /home/cinaeco/scan-dialog/scanner-al.icm"
+  [[ $icc == "Profile-ax" ]] && options="${options} -profile /home/cinaeco/scan-dialog/scanner-ax.icm"
+  [[ $icc == "Profile-al" ]] && options="${options} -profile /home/cinaeco/scan-dialog/scanner-al.icm"
+  [[ $icc == "Profile-as" ]] && options="${options} -profile /home/cinaeco/scan-dialog/scanner-as.icm"
   echo "Options: $options"
 
   convert $options $tempname $tempname | \
@@ -129,7 +129,7 @@ yad --form --orient=hor --maximized --width=750 --height=250 --columns=3 --focus
   --field="File format:CB" jpg\!png\!pdf\!tiff \
   --field="Paper Size:CB" A4\!A4-R\!A5\!A5-R\!B5\!B5-R\!LTR\!LTR-R\! \
   --field="Resolution (DPI):CB" 75\!150\!^300\!600\!1200 \
-  --field="Apply ICC Profile:CB" Profile1\!Profile2\!Profile3\!No \
+  --field="ICC Profile:CB" Profile-ax\!Profile-al\!Profile-as\!None \
   --field="Scan Buttons:BTN" "" \
   --field="Colour:FBTN" 'bash -c "run_scan %1 %2 %3 %4 %5 %6 %7 Color"' \
   --field="Grayscale:FBTN" 'bash -c "run_scan %1 %2 %3 %4 %5 %6 %7 Gray"' \