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 switch from NetworkManager to systemd-networkd on Linux - August 31, 2015
- How to set up a system status page of your infrastructure - August 25, 2015
- How to configure virtual hosts in Apache HTTP server - August 24, 2015