From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68739 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: compresslevel and png graphics (mkiv) Date: Thu, 26 May 2011 13:22:09 +0200 Message-ID: References: <4DDCF96A.3050703@gmx.net> <4DDD14BC.40203@wxs.nl> <4DDE30D0.9040204@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 1306408955 6131 80.91.229.12 (26 May 2011 11:22:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 May 2011 11:22:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 26 13:22:31 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 1QPYe5-0007Vl-SZ for gctc-ntg-context-518@m.gmane.org; Thu, 26 May 2011 13:22:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0D514CAD70; Thu, 26 May 2011 13:22:27 +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 v7VQIHuKEA7g; Thu, 26 May 2011 13:22:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 511D8CAD66; Thu, 26 May 2011 13:22:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 81BB6CAD66 for ; Thu, 26 May 2011 13:22:22 +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 kUjxQSNuUMyC for ; Thu, 26 May 2011 13:22:11 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 9479BCAD60 for ; Thu, 26 May 2011 13:22:11 +0200 (CEST) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4QBMAHk014984 for ; Thu, 26 May 2011 13:22:10 +0200 Original-Received: by qwa26 with SMTP id 26so426187qwa.14 for ; Thu, 26 May 2011 04:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=v9KZnILRxjy2+umuzHrPkh0+9SAfdLpSE9eqc2b6JxQ=; b=wF/ILeD18QezbnPCYZHh9lmStipL+Vf1453IOAGZWshnKTp7jxptymCuoyk5Aoteic +T8a8J+5drQT7v0xcWVaPc+SKxCjIyEfNlMuQxw7N+hSFX0VmmTXm4BfV4v476ZgSnUp 51c+boeX29Lp4nt6e7+B19au7EcO+CFYm7eFo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=RGKZy9URURfRkAj2lkfMVFjqUqco48DM5hiZHuDR3Od6Vj7+KRVon8jQAB7b+53nuL q9P6B7dxW7dztnPiCgcAWcnj5Cx/MghwbZGoM3AuUDJjyYslJGAir2raub/6PP75oPnQ GIgi6mmRWuMxXPHpTc4gX4p6EW/p2Acin/YzU= Original-Received: by 10.229.53.79 with SMTP id l15mr490304qcg.83.1306408929795; Thu, 26 May 2011 04:22:09 -0700 (PDT) Original-Received: by 10.229.185.19 with HTTP; Thu, 26 May 2011 04:22:09 -0700 (PDT) In-Reply-To: <4DDE30D0.9040204@gmx.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eEMbma7Q - 8bfdb362532b - 20110526 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:68739 Archived-At: On Thu, May 26, 2011 at 12:52 PM, Peter Rolf wrote: > Am 25.05.2011 21:54, schrieb Hartmut Henkel: >> On Wed, 25 May 2011, Hans Hagen wrote: >>> On 25-5-2011 2:43, Peter Rolf wrote: >>>> >>>> I just made a one pager (TEXpage) out of a big png graphic >>>> (5900x4094). The compressed size of the graphics is normally around >>>> 1.37MB on the highest png compress level (9) and 1.32MB after using >>>> optipng (only around 3% reduction this time). To my surprise the >>>> size of the final PDF was about 2.3MB. After adding >>>> '\pdfcompresslevel9' the size went down to 1.48MB. Still not what I >>>> wanted... >>>> >>>> So I was wondering: is there an option to embed the png graphic as >>>> it is (no re-compression)? >> >> 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. >> > Sigh, most of my graphics use (and need) transparency. > So the only advantage I get from optipng is the smaller file size on my > disk. Sad, but good to know. ;-) > >> Preprocessing the PNG, e. g., by convert, sometimes changes it that it >> gets copyable. Obviously flattening transparency also helps. >> >> Anyway direct embedding or not can have positive or negative influence >> on the PDF file size. E. g. if a PNG is copied verbatim, and it contains >> lots of meta-data info, the PDF file will probably get larger, since >> normal PNG embedding removes all these info chunks. >> > And what about icc profiles? removed, I suppose. Not really a big problem, and doable in mkiv (see Hacked image color space. in texmf-dist/doc/pdftex/manual/samplepdf of a recent texlive) -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________