Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx3.public.one.com ([10.246.18.23])
	by mail6.local.one.com (Dovecot) with LMTP id Nr5IABjIFFlIyAAAsyOMew
	for <filtered@awaresystems.be>; Thu, 11 May 2017 20:51:52 +0000
X-HalOne-ID: a8c3455f-368b-11e7-a2ef-b82a72d83ab6
Received: from mail-oi0-f50.google.com (unknown [209.85.218.50])
	by mx3.public.one.com (Halon) with ESMTPS
	id a8c3455f-368b-11e7-a2ef-b82a72d83ab6;
	Thu, 11 May 2017 20:51:52 +0000 (UTC)
Received: by mail-oi0-f50.google.com with SMTP id w10so44950006oif.0
        for <filtered@awaresystems.be>; Thu, 11 May 2017 13:51:52 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :mime-version:in-reply-to:references:from:date:message-id:to:cc
         :subject:precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:content-transfer-encoding:sender:errors-to;
        bh=B7yFSI7StHRF3HKbkhfrxzMwEAMabFxZLZDP3x3X7gQ=;
        b=ctidxYlEXWTCkGEFud9rGFZsKmuUVYA5zij8dZfJWhmrHBV7QcZ3/q5MK4vaHcHaNh
         DRDnKnT2iiAd17/XDY+niF5Ct2SJFwiCQDsoazWYeuzVEBjS0RXZR9UpDFdlWKGBdzka
         ecqfgbGD9CCmhoArBnVPCFwCcA8FJ7MuqyHNY0Q6Zf7+qlYcveB1U0ySGagpPdFKZh+H
         H98bSsql/kxpg9SJP/JiAedNUqf5TKoPUlhFfSzDUimEI9vOj8pLb4BCZf9hwFzVWmwh
         D/gfOfFNlvL7VJZCkMlHU+FtApDcwoyGN+1SckQ9JCl6yJRx/DmGDqx5u6h7UnCHYR7F
         9X2g==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
X-Gm-Message-State: AODbwcATJ9B+uFlwluVMsdjltO4nQfXSNDIMz+GISeRPCUUAXC85FJZ4
	g7utBCQcISZXjWfxVLAvX/HXrhwi87Ky9f6F1yK8NA==
X-Received: by 10.157.14.236 with SMTP id 99mr253337otj.164.1494535911296;
        Thu, 11 May 2017 13:51:51 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.202.59.195 with SMTP id i186csp19573oia;
        Thu, 11 May 2017 13:51:50 -0700 (PDT)
X-Received: by 10.223.164.208 with SMTP id h16mr284921wrb.142.1494535909977;
        Thu, 11 May 2017 13:51:49 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1494535909; cv=none;
        d=google.com; s=arc-20160816;
        b=sDAhT5DGJEj7B/rqc8oCw10zdUz8i7UKXLFV3EGjeDFvw4VsJIKD2OPiPny4YIhsoN
         B05FHCTJ9zk0vgoUjzs1Mu+0QTsnDH5ydKQkQxv3UywYE55hAi0uvdYeMSbg7bo1FhYk
         bLsH4pSjz0aWO2CC6c+wvLXeS7uOprWAt2BXzL3rWe8FUOY5KQDRu1rpOd2tuKS4NS7p
         tnaDIylIn6+qvvmU1zAug61erGy6gztW8jyEpDF2oeifhlY1FMgutkrzoSHuBh3futle
         4WwzdxwrtyeIhO7q6meILrFyYJZto/7JqWqBtKdT1gxFNgcjPxTz5DKNElE+RzBMAkqn
         GX8w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help
         :list-post:list-archive:list-unsubscribe:list-id:precedence:subject
         :cc:to:message-id:date:from:references:in-reply-to:mime-version
         :arc-authentication-results;
        bh=B7yFSI7StHRF3HKbkhfrxzMwEAMabFxZLZDP3x3X7gQ=;
        b=D2B6R8+gsvQPbPqJfCilkp74d+K+BWqPN/rOWx6JTIdbHoQLowbZy6usElTRq9uMgV
         6/ynortEuc6sqAk886As2YnwOuDjj/KgViftgy0IxbdkaZVmPW84BxfPc3yBtp0jbcCS
         8i5UW/U9ldtM/WfUFvVh+Yn0mlg54PP1Cnk6LTacFCKLgoP31CiaOkU59NUMLMMsE7SM
         PWWmvgl1ah7wrg/cl8WdMcyEpcz0EJVaqXZNwwNHRNXnh/XC2hQw4QFpYeH6n83O7slu
         UzPpQH0/q0QZD5O8EiA4SaSj7waG9X7yYpHSctDE1ja5LIDv9bQZ83c49p8YTB4UtDUl
         2RLw==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Return-Path: <tiff-bounces@lists.maptools.org>
Received: from lists.maptools.org (ks365428.kimsufi.com. [94.23.4.142])
        by mx.google.com with ESMTP id a33si1265335wra.282.2017.05.11.13.51.49;
        Thu, 11 May 2017 13:51:49 -0700 (PDT)
Received-SPF: neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=94.23.4.142;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 38A6735C04E;
	Thu, 11 May 2017 15:50:42 -0500 (EST)
Received: from mail-io0-f170.google.com (mail-io0-f170.google.com
	[209.85.223.170])
	by lists.maptools.org (Postfix) with ESMTPS id AB2B435C04C
	for <tiff@lists.maptools.org>; Thu, 11 May 2017 15:48:57 -0500 (EST)
Received: by mail-io0-f170.google.com with SMTP id o12so29268907iod.3
	for <tiff@lists.maptools.org>; Thu, 11 May 2017 13:48:56 -0700 (PDT)
X-Received: by 10.107.155.76 with SMTP id d73mr555464ioe.122.1494535735961;
	Thu, 11 May 2017 13:48:55 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.79.39.76 with HTTP; Thu, 11 May 2017 13:48:15 -0700 (PDT)
In-Reply-To: <CAO=tXLBpZO+JenD-z4kdq13y99=Vf72U8_3eS3NoqN+qqKdhyQ@mail.gmail.com>
References: <CAO=tXLAn0GAbQV-UsxNrJ9dd7P_fxKmm_B78Qz9ZwBFP3Ks8Hg@mail.gmail.com>
	<D53A2232.473CE%kemp@objectivepathology.com>
	<CAO=tXLAy42a1fhr=5fKxe6pWBxP8f-6_cpbjt-n7aNG3cqObow@mail.gmail.com>
	<CAGNS0RtUVAz2Ki5QMXB4UF86ELXuejVGSeRTdx7JaQEP3-pUTQ@mail.gmail.com>
	<CAO=tXLBpZO+JenD-z4kdq13y99=Vf72U8_3eS3NoqN+qqKdhyQ@mail.gmail.com>
From: jcupitt@gmail.com
Date: Thu, 11 May 2017 21:48:15 +0100
Message-ID: <CAGNS0RsF9czO=Rv5EXQzJe0KNGE_UFyvbRLRMAS3GXknwNU+PA@mail.gmail.com>
To: Yakov Galka <ybungalobill@gmail.com>
Cc: TIFF mailing list <tiff@lists.maptools.org>
Subject: Re: [Tiff] JPEG compressed RGB tiled TIFF with chroma subsampling
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On 11 May 2017 at 20:37, Yakov Galka <ybungalobill@gmail.com> wrote:
> It is a misdesign however -- because it's not transparent to the reader. If
> the author of the reader did not handle this JPEG corner-case specifically,
> then it's going to fail.

I don't think I've come across a reader which doesn't handle this
case. Almost all jpeg-in-tiff files use this mode, so you really have
to.

It's arguably a basic misdesign with tiff: writers are simple (you can
describe almost any pixel layout with a tiff header), but readers are
hard (you have to be able to read almost any pixel layout),

Anyway, this is the most common way of handling jpeg compression in
tiff, so I think you'll be fine.

John
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
