• renzev@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    6 months ago

    Just take a photo with a trusted regular camera app and then enhance it with imagemagick. I have this script, works like a charm: convert INPUT_IMAGE.jpg -colorspace gray \( +clone -blur 15,15 \) -compose Divide_Src -composite -normalize -threshold 80% OUTPUT_IMAGE.jpg. Pretty sure you can also specify multiple input images, and imagemagick can merge it into a PDF file. For joining a really large number of images into PDF files (e.g.scans of entire books), you can convert each image individually, and then pdunite them. So something like for i in *; do convert $i $i.pdf; done; pdfunite $(ls *.pdf | sort -n) output.pdf

    Apps are bloat. Reject modernity, embrace shell scripts.