Export[..., ImageResolution, ... ImageSize]
- To: mathgroup at smc.vnet.net
- Subject: [mg105868] Export[..., ImageResolution, ... ImageSize]
- From: "Scot Martin" <smartin at seas.harvard.edu>
- Date: Tue, 22 Dec 2009 04:06:19 -0500 (EST)
- Organization: Harvard University
- Reply-to: <scot_martin at harvard.edu>
Anyone have insight on this problem with image resolution in version 7? SetDirectory@NotebookDirectory[]; plot = Plot[x, {x, 0, 10}]; Export["plot.gif",plot,ImageSize->5*72,ImageResolution->300] The export command seems to ignore ImageResolution. Here is what used to work in V5.2 of Mathematica: Export["plot.gif",plot,ImageResolution->300] This "plot.gif" in V7 now has the problem that all of the ticks and so forth have become very small, i.e., they were not scaled properly. Apparently, Mathematica combined ImageSize and ImageResolution by scaling the image to (300/72)*5*72, without proportionate magnification of the ticks. [This was not a problem in earlier versions of Mathematica, e.g., V5.2.] Here is a messy workaround: Export["plot.gif", Magnify[Show[FullGraphics@plot, Options[plot, AspectRatio]], 300/72],ImageResolution -> 300] My question for the group: Am I missing a simple solution to this problem instead of the messy work around? Thanks for any help and insight!