Skip to content

Instantly share code, notes, and snippets.

@yalin
Created May 10, 2023 12:04
Show Gist options
  • Save yalin/e362eb292d17efe95e5e56f7fb904c72 to your computer and use it in GitHub Desktop.
Save yalin/e362eb292d17efe95e5e56f7fb904c72 to your computer and use it in GitHub Desktop.
convert jpg to pdf
for f in *.JPG; do convert $f -resize 800 -quality 80 ${f%.*}.pdf ; done;
@yalin
Copy link
Author

yalin commented May 10, 2023

This will convert every JPG file under the folder to pdf file with resizing their width to 800 and with quality 80%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment