|
|
@@ -256,6 +256,23 @@ USE_DINNORM="-resize ${PictureAverage}x -density 150x150"
|
|
|
|
|
|
# convert ${USE_DINNORM} $(${EXEC_FIND} | sort -n | paste -sd\ ) "${FILE%\.*}_${DINNORM}222.pdf"
|
|
|
|
|
|
+ ## file for file (slower)
|
|
|
+ if [ "${WORKAROUND}" == "TRUE" ]
|
|
|
+ then
|
|
|
+ find $$ -iname '*.*g' | sed 's/ /\\ /g' | sort -n | while read file
|
|
|
+ do
|
|
|
+ convert \
|
|
|
+ -define registry:temporary-path='$$/magicktmp/' \
|
|
|
+ -compress jpeg \
|
|
|
+ -quality 70 \
|
|
|
+ -density 150x150 \
|
|
|
+ -units PixelsPerInch \
|
|
|
+ -resize ${PictureAverage}x \
|
|
|
+ ${file} ${file}
|
|
|
+ done
|
|
|
+
|
|
|
+ convert $( find $$ -iname '*.*g' | sed 's/ /\\ /g' | sort -n | paste -sd\ ) "${FILE%\.*}_${PictureAverage}a.pdf"
|
|
|
+ else
|
|
|
|
|
|
# convert -define registry:temporary-path='$$/magicktmp/' ${USE_DINNORM} $( find $$ -iname '*.*g' | sed 's/ /\\ /g' | sort -n | paste -sd\ ) "${FILE%\.*}_${PictureAverage}.pdf"
|
|
|
convert \
|
|
|
@@ -269,6 +286,7 @@ USE_DINNORM="-resize ${PictureAverage}x -density 150x150"
|
|
|
"${FILE%\.*}_${PictureAverage}a.pdf"
|
|
|
# convert ${USE_DINNORM} $( find $$ -iname '*.*g' | sed 's/ /\\ /g' | sort -n | paste -sd\ ) "${FILE%\.*}_${PictureAverage}.pdf"
|
|
|
|
|
|
+ fi
|
|
|
NEWPDF="${FILE%\.*}_${PictureAverage}.pdf"
|
|
|
|
|
|
#convert ${USE_DINNORM} $$/*g $$/*G $$/*/*g $$/*/*G $$/*/*f $$/*/*F "${FILE%\.*}_${DINNORM}.pdf"
|
|
|
@@ -327,7 +345,7 @@ SAVEIFS=$IFS
|
|
|
IFS=$SAVEIFS
|
|
|
|
|
|
#read ROTATE COMPRESS <<< $(yad --width=300 --height=100 --center --title="Field Optionen" --form --separator=" " --field="Rotate pictures:CHK" TRUE --field="Compress pdf:CHK")
|
|
|
-read ROTATE COMPRESS CSIZE <<< $(yad --width=300 --height=100 --form --separator=" " --center --title="Field Optionen" --form --field="Rotate pictures:CHK" TRUE --field="Compress pdf:CHK" FALSE --field="Size":CB 'auto!1200!1000!750!500!400!300' )
|
|
|
+read ROTATE COMPRESS WORKAROUND CSIZE <<< $(yad --width=300 --height=100 --form --separator=" " --center --title="Field Optionen" --form --field="Rotate pictures:CHK" TRUE --field="Compress pdf:CHK" FALSE --field="Workaround on oom crash:CHK" FALSE --field="Size":CB 'auto!1500!1200!1000!750!500!400!300' )
|
|
|
|
|
|
|
|
|
echo "aa=$ROTATE bb=$COMPRESS cc=$CSIZE"
|