MATLAB Answers

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

3 ビュー (過去 30 日間)
Tyler Chlapek
Tyler Chlapek 2015 年 5 月 11 日
コメント済み: Tyler Chlapek 2015 年 5 月 11 日
I recently updated from a 2013 version to 2015a. For years, going back to 2011, I've been using
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
has no effect. I've had mild success with switching to dialed-down bitmap
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?

回答 (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.


Community Treasure Hunt

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

Start Hunting!

Translated by