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.