How did file size change with print(gcf,'-dmeta')?

3 次查看(过去 30 天)
I recently updated from a 2013 version to 2015a. For years, going back to 2011, I've been using
print(gcf,'-dmeta')
to copy figures to the clipboard, after which I paste the figures into powerpoint. With my previous MATLAB version the file size was roughly 30 KB per slide, but with 2015a, the file size has jumped to ~360 KB per slide. This new size is unsustainable with the files I have to generate. Changing the resolution of metas with anything similar to
print(gcf,'-dmeta','-r75')
has no effect. I've had mild success with switching to dialed-down bitmap
print(gcf,'-dbitmap','-r75')
but to get down the previous file size, I have to drive the visual quality down to something considerably worse than with the default -dmeta with 2013.
Is there a workaround to get back to the 2013 -dmeta functionality and file size?
Thanks

回答(1 个)

Thomas Koelen
Thomas Koelen 2015-5-11
Try this:
[image,path] = uigetfile('*.*');
info = imfinfo(fullfile(path,image))
check the differences?
  1 个评论
Tyler Chlapek
Tyler Chlapek 2015-5-11
imfinfo doesn't appear to work for .emfs, however, it does work for .pngs. Saving the images out of the generated powerpoints, I actually get 1,630 KB for the 2015 .emf, 283 KB for the 2013 emf, and 150 KB for the low-res .bmp.
One observation: The plot lines, ticks, and boxes look similar in the powerpoints for 2013 and 2015, but when I then save the .emfs out of the presentations, the 2013 lines, ticks, and boxes are much thinner/fainter than with 2015.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by