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

3 vues (au cours des 30 derniers jours)
Tyler Chlapek
Tyler Chlapek le 11 Mai 2015
Commenté : Tyler Chlapek le 11 Mai 2015
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

Réponses (1)

Thomas Koelen
Thomas Koelen le 11 Mai 2015
Try this:
[image,path] = uigetfile('*.*');
info = imfinfo(fullfile(path,image))
check the differences?
  1 commentaire
Tyler Chlapek
Tyler Chlapek le 11 Mai 2015
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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by