How to compress an image with different strength in jpg compression

 Accepted Answer

Use imwrite() with 'Compression' set to 'jpeg' and 'Quality', a number between 0 and 100.
Note there are other options for jpeg images as well. These are documented in the imwrite reference page.

2 Comments

@Wayne: Optimal answer inspite of triviality. +1
@Sumit: Please read the documentation before posting in the forum.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!