Home » Questions » Computers [ Ask a new question ]

What is the fastest way to convert 50 PNGs to JPGs in Ubuntu? [duplicate]

What is the fastest way to convert 50 PNGs to JPGs in Ubuntu? [duplicate]

I have about 50 PNGs that are about 10Mb each (fully compressed). I want to convert them to JPGs with maximum quality, so that they fall just under Facebook's 5Mb limit. I can manually convert each one in the GIMP, but this seems like a bit of a pain. Is there an easy way to convert them all at once?

Asked by: Guest | Views: 331
Total answers/comments: 1
Guest [Entry]

"Try mogrify -format jpg -quality 90 *.png and the pictures should come out a lot smaller.

The ""quality"" number is a 0 - 100 integer value where 0 is worst and 100 is best, chances are mogrify defaults to 100 hence the large file sizes. 90 is a good point to start at as it compresses quite well and you'll be able to see almost no difference to the original image. Below around 75 you'll probably start to see artifacts and poor quality, depending on your eyesight and personal aesthetic."