Explorar el Código

Zwischenstand eingepflegt, Optimierung der PDF Erstellung

erdo hace 2 años
padre
commit
ec473926ce
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      all2pdf_yed

+ 10 - 1
all2pdf_yed

@@ -257,7 +257,16 @@ USE_DINNORM="-resize ${PictureAverage}x -density 150x150"
 #    convert ${USE_DINNORM} $(${EXEC_FIND} | sort -n | paste -sd\ ) "${FILE%\.*}_${DINNORM}222.pdf"
 
 
-    convert -define registry:temporary-path='$$/magicktmp/' ${USE_DINNORM} $( find $$ -iname '*.*g' | sed 's/ /\\ /g' | sort -n | paste -sd\ ) "${FILE%\.*}_${PictureAverage}.pdf"
+#    convert -define registry:temporary-path='$$/magicktmp/' ${USE_DINNORM} $( find $$ -iname '*.*g' | sed 's/ /\\ /g' | sort -n | paste -sd\ ) "${FILE%\.*}_${PictureAverage}.pdf"
+   convert \
+     -define registry:temporary-path='$$/magicktmp/' \
+     -compress jpeg \
+     -quality 70 \
+     -density 150x150 \
+     -units PixelsPerInch \
+     -resize ${PictureAverage}x \
+     $( find $$ -iname '*.*g' | sed 's/ /\\ /g' | sort -n | paste -sd\ ) \
+     "${FILE%\.*}_${PictureAverage}a.pdf"
 #    convert ${USE_DINNORM} $( find $$ -iname '*.*g' | sed 's/ /\\ /g' | sort -n | paste -sd\ ) "${FILE%\.*}_${PictureAverage}.pdf"
 
     NEWPDF="${FILE%\.*}_${PictureAverage}.pdf"