stefslon / savepng

savepng is a very efficient PNG image compression MEX-routine that outperforms MatLab's built-in imwrite in compression times and file sizes.
http://www.mathworks.com/matlabcentral/fileexchange/40384
MIT License
13 stars 2 forks source link

savepng is indeed much faster, but the resolution is still not as good as exportgraphics #1

Open farhilltramper opened 1 year ago

farhilltramper commented 1 year ago

Hi,

It seems the quality of the picture exported using exportgraphics is much better. I tried different compression/resolution w/ savepng but none of them can reach the quality produced by exportgraphics. Any clue?

Cheers~

stefslon commented 1 year ago

Can you provide an example? PNG is a lossless compression, I don't know how if can actually resolve in a worse quality. Resolution of the saved image is wholly depended on the the RGB matrix you pass in to savepng().