how to convert multiple image of PNG to JPG using Matlab?
7 views (last 30 days)
Show older comments
i already coding for one image. but now i need to convert 180images. Thank you
2 Comments
venkata ravi vusa
on 31 Mar 2017
How can we do that by using loop instead of "IMWRITE" command in MATLAB
Walter Roberson
on 31 Mar 2017
venkata ravi vusa: see the existing Answers, below, for links to the Frequently Asked Questions on how to loop over a series of files.
Answers (2)
Guillaume
on 1 Oct 2015
While it's certainly possible and not particularly hard to do it using matlab, there are standalone programs that can already do that at the push of a button (e.g. irfanview) or a simple command (e.g. imagemagick).
Note that converting to jpeg is not a good idea if you want to do processing on the images. jpeg is a lossy format, it will alter the values of the pixels of the image.
0 Comments
Walter Roberson
on 1 Oct 2015
Note: JPEG is a lossy file compression, and is not overly suitable for image analysis purposes as it blurs sharp lines, making it difficult to find boundaries. If you intend to do analysis on the files it is better to leave them as PNG.
0 Comments
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!