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##*.}"
doneNote 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)))
But yea, this will work as long as you have imagemagick and Nautilus installed.
Beautiful language ruined by morons.
Fix for idiots:
do magick -density 150 "${pdf}" \
Otherwise special characters or spaces in filename could mess up command. ROTATION=$(shuf -n 1 -e '-' '')$(shuf -n 1 -e $(seq 0.05 .5))
and this line is a mess easy fix if you aren't stupid. ROTATION="$(seq -0.5 0.05 0.5 | shuf -n 1)"
dumb fuckshttps://www.justice.gov/epstein/files/DataSet%207/EFTA000092...
Is that remotely plausible? I can't imaging faking a scan being easier than just walking down the hall to the copier room.
I mean even in this thread you got what are essentially one-liners to do it.
Definitely less hassle then doing it irl
Yeah they might have used some web converter, but that on the other hand would have been extremely incompetent handling of the secret data.
If they were faking the documents rather than the delivery method they definitely could have invested some time in flawless looks.
Don't attribute to malice what can be attributed to laziness, these are government workers
Sign a blank paper, scan it, paste the original doc on it. Then keep the scan for future docs.
The only reason I can think of for why someone would want to do this is to pass off fraudulent or AI generated images as real.
Other investigations into the files have found oddities like redaction of the word "don't" indicating a haphazard find-&-replace approach to redaction, possibly LLM-aided.
The DOJ/Akamai online hosted search feature is also incomplete - potentially due to some of these "digitally scanned" files not being subject to OCR.
Possibly but I don't find it compelling, if only because a significant portion of the media reportage on the files has made claims that are entirely baseless - if there were a narrative to be sold one would expect such reportage to be actively leveraging such fraudulent images.
But if you want to do it to 2000 documents...
Was the motivation for this benign (an employee skirting regulations) or malicious?
There are also other documents that appear to simulate a scanned document but completely lack the “real-world noise” expected with physical paper-based workflows. The much crisper images appear almost perfect without random artifacts or background noise, and with the exact same amount of image skew across multiple pages. Thanks to the borders around each page of text, page skew can easily be measured, such as with VOL00007\IMAGES\0001\EFTA00009229.pdf. It is highly likely these PDFs were created by rendering original content (from a digital document) to an image (e.g., via print to image or save to image functionality) and then applying image processing such as skew, downscaling, and color reduction.