Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx016.isp.belgacom.be (inmx016.isp.belgacom.be [195.238.2.219])
        by mailst034.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i8FCJtZq018638
        for <joris.at.lebbeke@skynet.be>; Wed, 15 Sep 2004 14:19:56 +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 inmx016.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i8FCJIDq025755
        for <joris.at.lebbeke@skynet.be>; Wed, 15 Sep 2004 14:19:21 +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 B91062E9EF3; Wed, 15 Sep 2004 08:18:39 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from hotmail.com (bay1-f24.bay1.hotmail.com [65.54.245.24])
	by xserve.flids.com (Postfix) with ESMTP id D20982E5606
	for <tiff@remotesensing.org>; Tue, 14 Sep 2004 10:16:07 -0400 (EDT)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	Tue, 14 Sep 2004 06:50:06 -0700
Received: from 80.202.177.79 by by1fd.bay1.hotmail.msn.com with HTTP;
	Tue, 14 Sep 2004 13:50:05 GMT
X-Originating-IP: [80.202.177.79]
X-Originating-Email: [hantheman12@hotmail.com]
X-Sender: hantheman12@hotmail.com
From: "Han The Man" <hantheman12@hotmail.com>
To: tiff@remotesensing.org
Date: Tue, 14 Sep 2004 13:50:05 +0000
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <BAY1-F24Br5WhLaTwOk000fbe3c@hotmail.com>
X-OriginalArrivalTime: 14 Sep 2004 13:50:06.0109 (UTC)
	FILETIME=[BDDCDCD0:01C49A61]
X-Mailman-Approved-At: Wed, 15 Sep 2004 08:18:37 -0400
Subject: [Tiff] Removing reduced resolution pages
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: 88161ce1da50c2e3ac863fedad67e5a1

Hi all,

I have about 50.000 TIFF files, some of them having pages with 
"reduced-resolution" pages.

I want to remove any pages in those TIFF files marked as reduced-resolution. 
So in essence, I want to replace the original file with a new file not 
having reduced-resolution pages.

Can I do that reliably using libtiff?

Below is a sample output from TIFFINFO. I know (by visual inspection) that 
the reduced resolution images are at page 2 and 4.

The subfiletype is 0x03 for page 2 and 4, but according to the TIFF 6.0 spec 
about "Subfiletype", 0x03 means "a single page of a multipage image".

Shouldn't TIFFINFO print 0x02 - "reduced-resolution image".

What am I missing?

Also, how can I best remove reduced-resolution pages from my TIFF files?

Best,
Han

------ TIFFINFO OUTPUT ---

TIFF Directory at offset 0x8
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 2472 Image Length: 3504
  Tile Width: 512 Tile Length: 512
  Resolution: 300, 300 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Date & Time: "2002:11:11 11:11:11"
  Image Description: "(removed)"
  Make: "(removed)"
  Model: "(removed)"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Planar Configuration: single image plane
  Software: (removed)
  Tag 34860: (removed)
  Group 4 Options: (0 = 0x0)

TIFF Directory at offset 0x9cec
  Subfile Type: reduced-resolution image/multi-page document (3 = 0x3)
  Image Width: 618 Image Length: 876
  Tile Width: 512 Tile Length: 512
  Resolution: 75, 75 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Planar Configuration: single image plane
  Group 4 Options: (0 = 0x0)

TIFF Directory at offset 0xc2e4
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 2472 Image Length: 3504
  Tile Width: 512 Tile Length: 512
  Resolution: 300, 300 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Date & Time: "2002:11:11 11:11:11"
  Image Description: "(removed)"
  Make: "(removed)"
  Model: "(removed)"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Planar Configuration: single image plane
  Software: (removed)
  Tag 34860: (removed)
  Group 4 Options: (0 = 0x0)

TIFF Directory at offset 0x11cc0
  Subfile Type: reduced-resolution image/multi-page document (3 = 0x3)
  Image Width: 618 Image Length: 876
  Tile Width: 512 Tile Length: 512
  Resolution: 75, 75 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Planar Configuration: single image plane
  Group 4 Options: (0 = 0x0)

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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