Comment on 💞 FairScan > Syncthing > Paperlees-ngx
llii@discuss.tchncs.de 2 weeks agoYeah, I do this:
magick “$file” -limit memory 1GiB -limit map 2GiB -threshold 60% -define connected-components:area-threshold=5 -define connected-components:mean-color=true -connected-components 8 output.png
It makes the scan 1-bit black and white. It mostly removes bright background images, if there are any on the pages. I think it works quite well for basic black and white documents, but color graphics and graphs aren’t preserved.