AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1997.02.17 10:26 "Error in tiff2ps.c", by Per Richard Osmundsen
1997.02.17 11:14 "Re: Error in tiff2ps.c", by Bjorn Brox

1997.02.17 10:26 "Error in tiff2ps.c", by Per Richard Osmundsen

When converting from pixels/cm to pixels/inch the resolution should be multiplied by 2.54 not divided.

I.e. line 283 (aprox) in tiff2ps.c should be changed from

  xres /= 2.54; yres /= 2.54;

to

  xres *= 2.54; yres *= 2.54;

--
  regards/hilsen,
  Per Richard

-------------------------------------------
 Per Richard Osmundsen
 ProText Systems AS
 Hospitalslk. 15, 7012 Trondheim, Norway

 Voice mail:    +(47) 73 51 30 50
 E-mail:        perosm@sn.no