Created
January 15, 2018 10:54
-
-
Save clemlatz/ec6bd451081690bef9c6e3817ad6f6b7 to your computer and use it in GitHub Desktop.
Convert EPS files to JPEG
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
# Remove single quote and space in file names | |
for f in *\'*; do mv "$f" "${f//\'/_}"; done | |
for f in *\ *; do mv "$f" "${f//\ /_}"; done | |
# Convert to PDF | |
echo *.eps | xargs -n1 pstopdf | |
# Move files to pdf folder | |
cd ../pdf/ | |
mv $(echo ../eps/*.pdf) . | |
# Convert to JPEG | |
sips -s format jpeg *.pdf --out ../jpg/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment