(no title)
tombrossman | 27 days ago
ROTATION=$(shuf -n 1 -e '-' '')$(shuf -n 1 -e $(seq 0.05 .5))
for pdf in "$@";
do magick -density 150 $pdf \
-linear-stretch '1.5%x2%' \
-rotate 0.4 \
-attenuate '0.01' \
+noise Multiplicative \
-colorspace 'gray' \
"${pdf%.*}-fakescan.${pdf##*.}"
done
barrkel|27 days ago
Note that you can get random numbers straight from bash with $RANDOM. It's 15 bit (0 to 32767) but good enough here; this would get between 0.05 and 0.5: $(printf "0.%.4d\n" $((500 + RANDOM % 4501)))
streetfighter64|27 days ago
tombrossman|27 days ago
lordgrenville|26 days ago
turboponyy|26 days ago
But yea, this will work as long as you have imagemagick and Nautilus installed.
mimischi|26 days ago
landdate|26 days ago
[deleted]
taskforcegemini|26 days ago
landdate|26 days ago
[deleted]