Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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?

magnification=1

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

magnification=2

<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
show 3 more comments

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.