Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. for f in *.[jJ][pP][gG]; do
  4. convert "$f" -respect-parenthesis \( -clone 0 -set colorspace RGB -colorspace gray -negate -lat 15x15+5% -contrast-stretch 0 \) \
  5. -compose copy_opacity -composite -fill "white" -opaque none -alpha off "_$f"
  6.  
  7. done
  8.  
  9. convert -quality 85 _*.[jJ][pP][gG] -adjoin merged.pdf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement