| #!/bin/sh | |
| if [ $# -eq 0 ] | |
| then | |
| echo "Usage $0 img1.png img2.tif img3.pdf" | |
| echo "Requires ghostscript, imagemagick" | |
| fi | |
| for file in "$@" | |
| do | |
| convert "$file" "$file.pdf" | |
| pdf2ps "$file.pdf" | |
| rm "$file.pdf" | |
| ps2pdf "$file.ps" "${file%.*}.pdf" | |
| rm "$file.ps" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment