Re: the width and dpi of an EPS, TIFF or JPEG file



Mike wrote:
Hi

I have an output figure. And I do a little adjustment manually.
Then I save it as toa.fig

I want to output this figure as an EPS, TIFF or JPEG file with 15 cm
width and 600 dpi.

I use following commands:

open toa.fig
print -depsc -tiff -r600 Fig01.eps

Someone told me its width is smaller than 15 cm.

How do I know the width and dpi of an EPS, TIFF or JPEG file?
Is the previous command right?

thanks a lot.

Mike

The doc on the print command discusses this.

The width of the output is controlled by the figure's paperposition
property, and you can specify the units to use as well. Assuming you
want the current figure's output to be 15cm x 15cm:
set(gcf, 'paperunits', 'centimeters', 'paperposition', [0 0 15 15]);

The -r (resolution) flag does set the resolution (DPI) but only for
MATLAB generated graphic formats; it is not honored for the formats that
are created via Ghostscript.

The tiff preview embedded in an eps file is always 150 DPI for figures

--

Richard Quist
Software Developer
The MathWorks, Inc.
.



Relevant Pages

  • Re: fxscomex.dll sending tiff document
    ... I'm working on a c# fax server project and I'm trying to build a tiff ... Horizontal resolution 204 dpi ... By now, after execute the ConnectedSubmitmethod, the fax/modem ...
    (microsoft.public.win2000.fax)
  • Re: DPI with PHP/GD
    ... Kevin wrote: ... > Is there anyway to find out an image's DPI using GD? ... reading the first bytes of a jpeg file (and ... now, i speak about picture. ...
    (comp.lang.php)
  • Setting DPI without changing screen resolution...
    ... make text appear larget without having to switch to a ... where users can then select between 96 DPI and 120 DPI (dots per ... you can pass to xterm on the command line, ... a global option of that sort, for instance applying to desktop icon ...
    (comp.os.linux.misc)
  • Re: How do I increase resolution (dpi) in office document imaging?
    ... I need to prepare diagrams at>500 dpi in TIFF ... I had used publisher to prepare the ... The max resolution coming out of this process seems to be 300 dpi. ...
    (microsoft.public.publisher)
  • PCL language
    ... We have been using the plotter HP DJ ColorPro CAD 600 dpi. ... It let us print raster files like .tiff and .crl ... Is it possible that the HP DJ 500 with PCL 3 won't be able to plot .tiff and .crl files properly? ...
    (comp.graphics.apps.gnuplot)

Loading