Created
September 1, 2018 15:07
-
-
Save notsidney/db3b7fee7c23d36d0c332c3401eaab0d to your computer and use it in GitHub Desktop.
Fix scanned pages by changing levels using imagemagick
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $1 | |
for filename in ./Scan*.jpeg; do | |
echo $filename | |
convert "$filename" -level 40%,78% "$(basename "$filename" .jpeg)-L.jpeg" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment