Figure print - resolution stays at 96 dpi, despite specifying a higher resolution
7 views (last 30 days)
Show older comments
Hello Everyone,
I'm experiencing a strange problem when saving a figure as jpg. I want to save the figure at a resolution of 500 dpi. For this purpose I'm using this function:
print(h,'-djpeg','-r500',file_name);
However, the figure is always exported at a fixed resolution of 96 dpi (this is what is shown when I look at the figure's properties). Before 'printing' the figure I've already configured paper size, figure size, etc., and it all works well, but the resolution is the one thing that doesn't work.
Any help in finding out what could be causing this and how it could be solved would be greatly appreciated!
Thanks in advance,
Susana
0 Comments
Answers (1)
Titus Edelhofer
on 15 Apr 2015
Hi Susana,
just a question: do you see any effect? I just tried it (again), and using '-r150' and '-r300' indeed doubled the resolution (number of pixels in x/y). This is what I tried
surf(peaks);
print('-djpeg', '-r150', 'file150.jpg')
print('-djpeg', '-r150', 'file300.jpg')
Titus
0 Comments
See Also
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!