Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've inserted a picture in one cell, however, when I exported the cell as HTML, the size of my image in the html tag was doubled(the image file in HTMLFiles was the same as the original image).

I know what makes this happen: The reason is my global magnification value is 2.

How can I control my image size?


<img src="HTMLFiles/Untitled-1_1.gif" alt="Untitled-1_1.gif" width="800" height="427" style="vertical-align:middle" />


<img src="HTMLFiles/Untitled-1_1.gif" alt="Untitled-1_1.gif" width="1600" height="854" style="vertical-align:middle" />

I like magnification=2, how can I control my image size in the cell, and make it the same as the width and height in the <img> tag.

enter image description here

share|improve this question
When you say "global magnification value" where did you set this? – Mr.Wizard Dec 17 '13 at 10:09
@Mr.Wizard Ctrl+Shift+O and search magnification, I've added one picture, hope one can see that. – HyperGroups Dec 17 '13 at 10:18
Okay, is there any reason you can't just set the Notebook magnification to 50% before saving as HTML? – Mr.Wizard Dec 17 '13 at 10:19
@Mr.Wizard seems that doesn't work well for exporting by function Export... but works well by save as via GUI – HyperGroups Dec 17 '13 at 10:27
How are you exporting with Export? Are you exporting a NotebookObject expression? In v7 window magnification (set with the icon) affects that as well. – Mr.Wizard Dec 17 '13 at 10:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.