Info
This question is closed. Reopen it to edit or answer.
when am converting matlab figure in to jpg its size is increased a lot can anyone help to resolve the problem ,why is the size incresing
1 view (last 30 days)
Show older comments
here is the code am using to convert matlab figure in to jpg format and results are also attached please any one help
figs = openfig('h.fig');
for K = 1 : length(figs)
filename = 'h_dec.jpg';
saveas(figs(K), filename);
end
0 Comments
Answers (1)
Walter Roberson
on 10 Apr 2018
saveas saves at display resolution. If you were had displayed at higher number of pixels than the original resolution then the output is going to be larger than the original.
If you are referring to file size at the same resolution then note that saveas does not know the compression quality setting of the original image and would save with its default quality settings.
1 Comment
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!