Created
May 10, 2023 12:04
-
-
Save yalin/e362eb292d17efe95e5e56f7fb904c72 to your computer and use it in GitHub Desktop.
convert jpg to pdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.JPG; do convert $f -resize 800 -quality 80 ${f%.*}.pdf ; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will convert every JPG file under the folder to pdf file with resizing their width to 800 and with quality 80%