Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx013.isp.belgacom.be (inmx013.isp.belgacom.be [195.238.2.216])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i62FTNXT020819
        for <joris.at.lebbeke@skynet.be>; Fri, 2 Jul 2004 17:29:23 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx013.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i62FTBDU028264
        for <joris.at.lebbeke@skynet.be>; Fri, 2 Jul 2004 17:29:13 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 7CC3BE2F5F; Fri,  2 Jul 2004 11:28:59 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from hermes.med-web.com (mail.med-web.com [64.186.39.12])
	by xserve.flids.com (Postfix) with ESMTP id 8E3EAE2F39
	for <tiff@remotesensing.org>; Fri,  2 Jul 2004 11:28:57 -0400 (EDT)
Received: from pobox.com (dhcp89.med-web.com [192.168.240.89])
	by hermes.med-web.com (8.12.8/8.12.8) with ESMTP id i62FSDQE021257
	for <tiff@remotesensing.org>; Fri, 2 Jul 2004 10:28:14 -0500
Message-ID: <40E57F0D.80106@pobox.com>
Date: Fri, 02 Jul 2004 10:28:13 -0500
From: Jason Summers <jason1@pobox.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "'tiff@remotesensing.org'" <tiff@remotesensing.org>
Subject: Re: [Tiff] MINISBLACK not working for COMPRESSION_CCITT_T6 document
References: <6C1ED07489ADD51193CA0002A508C8AC02CE3A85@clavin.envoyww.com>
In-Reply-To: <6C1ED07489ADD51193CA0002A508C8AC02CE3A85@clavin.envoyww.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-MailScanner: Found to be clean
X-MailScanner-From: jason1@pobox.com
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 3fadec58a1dd55f5f39398cb33f56fb4

James, Ron wrote:
> I'm making the following calls:
> 
>     TIFFSetField(iTFile, TIFFTAG_COMPRESSION, COMPRESSION_CCITT_T6);
> 
>     TIFFSetField(iTFile, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK);
> 
> And my document is created in reverse  - i.e. white text on a black
> background.
 > ...
 >
 > How can I get a black text on white document using CCITT_T6?

The TIFF viewer you're testing this with was apparently written by 
someone who never bothered to read the TIFF specification. 
Unfortunately, there are a lot of such viewers out there.

If you need to support buggy viewers, never use MINISBLACK with CCITT 
compression. Only use MINISWHITE. You will probably have to invert the 
image data yourself before passing it to libtiff.

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
