Skip to content

Instantly share code, notes, and snippets.

@notsidney
Created September 1, 2018 15:07
Show Gist options
  • Save notsidney/db3b7fee7c23d36d0c332c3401eaab0d to your computer and use it in GitHub Desktop.
Save notsidney/db3b7fee7c23d36d0c332c3401eaab0d to your computer and use it in GitHub Desktop.
Fix scanned pages by changing levels using imagemagick
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