jpeg image compression

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
sudhasri
Posts: 2
Joined: 2014-01-30T05:39:47-07:00
Authentication code: 6789

jpeg image compression

Post by sudhasri »

Is there any command to make the jpeg image compressed without changing the quality and resolution of the image...
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: jpeg image compression

Post by snibgo »

Jpeg files are always compressed. And they always lose quality (the pixels change) every time IM writes them. (Well, they almost always lose quality.)

Lower "-quality" settings give greater compression but more data loss. "-quality 100" gives least compression and least data loss.

Does that answer the question?
snibgo's IM pages: im.snibgo.com
sudhasri
Posts: 2
Joined: 2014-01-30T05:39:47-07:00
Authentication code: 6789

Re: jpeg image compression

Post by sudhasri »

Thanks ,

yea am using the same command
convert original.jpeg -quality 60 imagemagick_60.jpg but there is slight difference in quality compared to the original image.. Is there any alternate way to that..
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: jpeg image compression

Post by snibgo »

The best alternative is: don't use jpegs.

If the images are graphics with solid colours, png may give you better compression with no data loss.
snibgo's IM pages: im.snibgo.com
Post Reply