Skip to content

Instantly share code, notes, and snippets.

@wernersmit
Created March 18, 2017 15:15
Show Gist options
  • Save wernersmit/583d6edf12829b1519d37aa3c1fe0e13 to your computer and use it in GitHub Desktop.
Save wernersmit/583d6edf12829b1519d37aa3c1fe0e13 to your computer and use it in GitHub Desktop.
Find JPG images in current path upwards, compress to 45% and resample to 72dpi
#!/bin/bash
find . -name '*.jpg' -exec convert -verbose -strip -interlace Plane -quality 45% -density 72 {} {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment