how calculate the size of image after compressed image

5 views (last 30 days)
how can calculate file size before and after compress image

Answers (1)

Rik
Rik on 20 Sep 2017
This was my first hit on Google for file size Matlab:
im1_stats = dir(filename_image1);
im2_stats = dir(filename_image2);
ratio = im1_stats.bytes./im2_stats.bytes

Community Treasure Hunt

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

Start Hunting!