is an option that specifies the absolute margins to leave around the image displayed for an object.


  • Settings for ImageMargins are given in printer's points.
  • Margins specified by ImageMargins appear outside the region defined by ImageSize.
  • Possible settings for ImageMargins are:
  • Automaticmargins to be determined by where the object appears
    mthe same margins on all sides
    {{left,right},{bottom,top}}different margins on different sides
  • ImageMargins can be used in functions such as Graphics and Export, as well as for objects such as Cell, Button, and Slider.
  • For Cell, ImageMargins represents space to be left inside whatever CellMargins are specified for a particular cell.


open allclose all

Basic Examples  (3)

No margins outside of ImageSize:

Have 20-point margins on all sides:

Leave different margins on each side:

Properties & Relations  (2)

ImageMargins is defined outside of ImageSize:

ImagePadding is defined within ImageSize:

Wolfram Research (1996), ImageMargins, Wolfram Language function, (updated 2007).


Wolfram Research (1996), ImageMargins, Wolfram Language function, (updated 2007).


Wolfram Language. 1996. "ImageMargins." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007.


Wolfram Language. (1996). ImageMargins. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2024_imagemargins, author="Wolfram Research", title="{ImageMargins}", year="2007", howpublished="\url{}", note=[Accessed: 12-July-2024 ]}


@online{reference.wolfram_2024_imagemargins, organization={Wolfram Research}, title={ImageMargins}, year={2007}, url={}, note=[Accessed: 12-July-2024 ]}