From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68775 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: compresslevel and png graphics (mkiv) Date: Fri, 27 May 2011 13:57:51 +0200 Message-ID: <4DDF91BF.8030806@gmx.net> References: <4DDCF96A.3050703@gmx.net> <4DDD14BC.40203@wxs.nl> <4DDE30D0.9040204@gmx.net> <4DDE7D0F.3030002@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306497507 6540 80.91.229.12 (27 May 2011 11:58:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 May 2011 11:58:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri May 27 13:58:19 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QPvgI-0005Fi-7u for gctc-ntg-context-518@m.gmane.org; Fri, 27 May 2011 13:58:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF70BCAD8A; Fri, 27 May 2011 13:58:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RZS3qGBzWdCY; Fri, 27 May 2011 13:58:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96217CAD7D; Fri, 27 May 2011 13:58:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F3BBCAD7D for ; Fri, 27 May 2011 13:58:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6v0BHBUZ4kEZ for ; Fri, 27 May 2011 13:57:57 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id B2EDDCAD1D for ; Fri, 27 May 2011 13:57:57 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p4RBvuXi014583 for ; Fri, 27 May 2011 13:57:56 +0200 Original-Received: (qmail invoked by alias); 27 May 2011 11:57:55 -0000 Original-Received: from ip-109-90-194-239.unitymediagroup.de (EHLO [192.168.178.3]) [109.90.194.239] by mail.gmx.net (mp072) with SMTP; 27 May 2011 13:57:55 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX19YkcZmvmpYkZwZJXtoVyST1i7E+Be1nJGQ1EwdHm zEZpncpWz/M7Yw User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.10 In-Reply-To: <4DDE7D0F.3030002@gmx.net> X-Enigmail-Version: 1.1.1 X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.22; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cEMzVUgf - f96d232046e4 - 20110527 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:68775 Archived-At: Am 26.05.2011 18:17, schrieb Peter Rolf: > Am 26.05.2011 12:52, schrieb Peter Rolf: >> Am 25.05.2011 21:54, schrieb Hartmut Henkel: > [..] >>> >>> no. There is a "PNG Copy" function for literal embedding of the PNG >>> file, but that triggers only, if the file simultaneously satisfies quite >>> a few conditions, which are about: non-interlaced, no palette, no >>> transparency, no gamma coming with it, no gamma modification requested, >>> no white adjustment in the PNG, and a few more rare others. Else it's >>> de-compressed and then re-compressed to the \pdfcompresslevel, and >>> additional streams and dicts are added. You see in the log if it finally >>> was "PNG Copy" or not. >>> > [..] >>> >>> These are about the factors affecting the PNG to PDF size. For your big >>> PNG graphic you may find a preprocessing (e. g., pngtopnm | pnmtopng >>> will definitely remove all fat) that makes it compliant with the "PNG >>> copy". >>> >> I will give that a try. But I doubt that there is much 'fat' on that >> graphic. Anyhow, you never know before you have tried it. :-) >> > > No luck. I used imagemagick to convert to pnm and back. > Transparency was removed before by adding a white background, also all > not critical chunks (ICC profile, backgroundcolor, resolution, creation > and modify date, comment) were removed. The graphic is a valid PNG > (TweakPNG) and aside from the size, there is nothing special with this > graphic. Still no '(PNG copy)'. > > @luigi: an ICC profile definitely breaks the rules > > The only chunks left are > > IHDR PNG image header: 5900x4094, 8bits/sample, truecolor, noninterlaced > IDAT PNG image data > .. > IDAT PNG image data > IEND end-of-image marker > > Mh, where is the show stopper? The compression method? > Looks like some of ConTeXt PDF/X-related settings is causing this. If I reduce the code to the pure picture, the '(PNG copy)' is triggered. Probably the active color management (default color space) is breaking the copy process here. Sorry for any inconvenience. I should have tested this case before... Best wishes, Peter > Regards, Peter > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________