Skip to content

Instantly share code, notes, and snippets.

@syuntoku14
Last active March 22, 2020 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syuntoku14/d82855359eb37202e4b922f69ec947d6 to your computer and use it in GitHub Desktop.
Save syuntoku14/d82855359eb37202e4b922f69ec947d6 to your computer and use it in GitHub Desktop.
Convert to eps
for file in *.png; do
convert $file eps2:${file%.*}.eps ;
done
for file in *.jpg; do
convert $file eps2:${file%.*}.eps ;
done
for file in *.pdf; do
convert -define profile:skip=ICC -density 150 $file -quality 90 ${file%.*}.png ;
done
for infile in *.svg ;
do inkscape $infile -E ${infile%.*}.eps --export-ignore-filters --export-ps-level=3 ;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment