# Inset thickness and ImageResolution

I have noticed that when I export something with an Inset objects,

pp[t_] :=
Plot[Sin[x], {x, -10, 10},
Epilog ->
{Inset[
Framed[
Text[Style[HoldForm["t=" t], 20]],
RoundingRadius -> 4, Background -> White],
Scaled[{.5, .5}]]},
Frame -> True]


When I increase the ImageResolution, the border of the inset becomes thicker. Here is what I see:

Export["/Users/xx/Desktop/ContC1.png", pp[12], ImageResolution -> 250]


Whereas, if I keep ImageResolution lower, the thickness of the inset is more reasonable.

What is happening?

• Probably you use Mathematica version lower than 10.4.1 because my tests with versions 10.4.1 and 11.1.0 on Windows 7 x64 showed that ImageResolution is simply ignored by Export. Note that ImageResolution (at least in version 10.0 where it works at all) isn't working as it is supposed to. Which version do you use? – Alexey Popkov Mar 19 '17 at 6:03

I recommend to Export the plot as PDF or SVG and then use Adobe Acrobat (or other PDF rendered) or Inkscape for producing a raster image. This method has many advantages:
And do not stick to rasters, you can Export your plot directly into a resolution-independent vector format: PDF, EPS, SVG and EMF are available! Many scientific journals prefer vector formats for figures and any modern desktop publishing software supports a subset of these formats.