Преглед изворни кода

Add second ICC Profile for testing

Weiyi Lou пре 1 месец
родитељ
комит
f51f4634bd
3 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      scan-dialog
  2. 0 0
      scanner-as.icm
  3. BIN
      scanner-ax.icm

+ 3 - 2
scan-dialog

@@ -79,7 +79,8 @@ function run_scan {
 
   options=""
   [[ $landscape == true ]] && options="${options} -rotate 90"
-  [[ $icc == "Yes" ]] && options="${options} -profile /home/cinaeco/scan-dialog/scanner.icm"
+  [[ $icc == "Profile1" ]] && options="${options} -profile /home/cinaeco/scan-dialog/scanner-as.icm"
+  [[ $icc == "Profile2" ]] && options="${options} -profile /home/cinaeco/scan-dialog/scanner-ax.icm"
   echo "Options: $options"
 
   convert $options $tempname $tempname | \
@@ -127,7 +128,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" Yes\!No \
+  --field="Apply ICC Profile:CB" Profile1\!Profile2\!No \
   --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"' \

+ 0 - 0
scanner.icm → scanner-as.icm