If you want to convert a ps or eps file into jpg format on Linux, you can use ghostscript.
To install ghostscript on Ubuntu or Debian:
To install ghostscript on CentOS, RHEL or Fedora:
To convert ps or eps file into jpg format using ghostscript, run the following.
If you want to resize or rotate the generated jpg image file, you can use ImageMagick. A command-line utility called mogrify contained in ImageMagick package can do necessary image transformation.
To install ImageMagick on Ubuntu or Debian:
To install ImageMagick on CentOS, RHEL or Fedora:
Once ImageMagick is installed, run mogrify command to resize and rotate an image.
Subscribe to Xmodulo
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!
Latest posts by Dan Nanni (see all)
- How to back up a WordPress website to remote cloud storage from the Linux command line - November 24, 2015
- How to access Dropbox from the command line in Linux - November 22, 2015
- How to send email notifications using Gmail SMTP server on Linux - November 9, 2015