Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to do something like

mogrify -format jpg *.png

However, I want to encode the jpg at a higher quality than the default. Is there a way to do this?

share|improve this question
up vote 15 down vote accepted
mogrify -format jpg -quality 100 *.png

According to the official documentation the quality parameter can be 1 - 100 and the effect varies depending on the resulting format.

  • For JPG output a value of 1 gives worst quality and highest compression; a value of 100 gives best quality and lowest compression.
  • For PNG files the quality parameter only changes the lossless compression strategies used, so the speed of compression and the resulting file size can be affected but image quality remains the same.

With any Linux command, you can enter

man [command]

To see the help page that list out the information and parameters available.

share|improve this answer
3  
Almost any Linux command. – Nathaniel Dec 5 '09 at 21:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .