User:Jferrell/cli magic

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search

Convert pdfs to jpgs (WD is directory containing pdfs).

for file in *.pdf; do convert -verbose -colorspace RGB -interlace none -density 300 -quality 100 $file ${file%%pdf}jpg; done; mogrify -fuzz 15% -trim +repage *.jpg