21

Bug introduced in 9.0.1 or earlier and persisting through 11.0.1 or later


When I try to export graphics as PNG, JPG and other rasterized formats using the right-click and choosing Save Graphic As..., if the notebook magnification is changed from 100%, Mathematica fails to export the image and returns the following error:

The specified setting for the option WindowSize cannot be used.

However this does not happen when Export function is used to export the graphic.

screenshot

I think this is a bug.

I am using Mathematica 9.0.1 installed on Microsoft Windows 7 (64-bit).

Rodney
  • 211
  • 2
  • 3

2 Answers2

17

I have reported this as a bug and it's confirmed.

M6299
  • 1,471
  • 1
  • 13
  • 20
10

Here are three ways to change the magnification without breaking Save Graphic As...:

  1. Changing the magnification of the current notebook by executing

    SetOptions[EvaluationNotebook[], Magnification -> 1.5]
    
  2. Changing the magnification used during the current session by executing

    SetOptions[$FrontEndSession, Magnification -> 1.5]
    
  3. Persistently changing the magnification of all future front end sessions by executing

    SetOptions[$FrontEnd, Magnification -> 1.5]
    

(If the "MagnificationPopUp" in the lower right corner of the window still shows 100%, that now means 100% of 150% magnification.)


There are three ways to solve this problem after one used the "MagnificationPopUp" in the lower right corner of the window or Ctrl+mouse wheel to change the magnification:

  1. Use Export instead of "Save Selection As ...", e.g.

    Export[FileNameJoin[{NotebookDirectory[], "graphic.png"}], %]
    
  2. Change the notebook magnification in the lower right corner of the notebook window to 100%.

  3. Use the menu Window ▶ Magnification to select any of the listed magnifications.

Karsten7
  • 27,448
  • 5
  • 73
  • 134