AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.01.21 09:15 "change fax resolution", by Takahashi Ryo
2004.01.21 12:15 "Re: change fax resolution", by Andrey Kiselev
2004.01.22 02:04 "Re: change fax resolution", by Takahashi Ryo
2004.01.22 02:13 "Re: change fax resolution", by Joris Van Damme
2004.01.22 07:39 "Re: change fax resolution", by Andrey Kiselev
2004.01.22 09:20 "Re: change fax resolution", by Joris Van Damme
2004.01.22 11:50 "Re: change fax resolution", by Joris Van Damme
2004.01.27 08:48 "Re: change fax resolution", by Takahashi Ryo

2004.01.22 02:13 "Re: change fax resolution", by Joris Van Damme

> 1 - Create the PNG image of 1728x2280
> 2 - Reduce the height to 50%, so I get a PNG image of
> 1728x1140 using something like ImageMagick
> 3 - Save the tiff image with the TIFFTAG_YRESOLUTION set
> to 100
>
> Is this the correct way of do it?

Yes, it is.

Alternatively, you could do the resampling yourself. It's really not that
difficult, and can be very fast, since you reduce each group of 2 pixels to
a single pixel. But of course, doing just that, you end up with 3 different
grayscale values including black and white, instead of just black and white.
So to be able to use fax compression in the destination TIFF, you should
apply some flavor of dithering after the resampling.

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be