From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68723 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: compresslevel and png graphics (mkiv) Date: Wed, 25 May 2011 18:05:15 +0200 Message-ID: <4DDD28BB.4000504@gmx.net> References: <4DDCF96A.3050703@gmx.net> <4DDD14BC.40203@wxs.nl> <4DDD16A3.6000005@elvenkind.com> 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 1306339537 671 80.91.229.12 (25 May 2011 16:05:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 May 2011 16:05:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 25 18:05:32 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 1QPGaO-0007rY-CP for gctc-ntg-context-518@m.gmane.org; Wed, 25 May 2011 18:05:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0BC3CAD5B; Wed, 25 May 2011 18:05: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 PZpjkitZksFu; Wed, 25 May 2011 18:05:25 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5ADD3CAD54; Wed, 25 May 2011 18:05:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C0B86CAD54 for ; Wed, 25 May 2011 18:05:23 +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 VenQew1vcusW for ; Wed, 25 May 2011 18:05:21 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 84C96CAD3A for ; Wed, 25 May 2011 18:05:21 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p4PG5KuV003193 for ; Wed, 25 May 2011 18:05:21 +0200 Original-Received: (qmail invoked by alias); 25 May 2011 16:05:20 -0000 Original-Received: from ip-109-90-194-239.unitymediagroup.de (EHLO [192.168.178.3]) [109.90.194.239] by mail.gmx.net (mp023) with SMTP; 25 May 2011 18:05:20 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX18OVF5hn/cOBGgfnKch6sZiWbc74M0M+kmaSTdxkY Belkn7yhVCxREh 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: <4DDD16A3.6000005@elvenkind.com> 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.23; 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: 0bELQ5kNf - 5c506c683aa9 - 20110525 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:68723 Archived-At: Am 25.05.2011 16:48, schrieb Taco Hoekwater: > > > On 05/25/11 16:39, Hans Hagen wrote: >> On 25-5-2011 2:43, Peter Rolf wrote: >>> Hi, >>> >>> 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)? Otherwise the time consuming usage of optipng would >>> be a complete waste of time. Believe it or not, but size matters :-) > > Well, that depends on what optipng does to your image. PDF can do some > types of png compression natively (no re-compression), but for that the > png has to follow some rules: not everything in the png spec is > supported that way. If you see '' during inclusion, then the > png follows those rules. Otherwise, it is included in recompressed form, > where everything is possible that is allowed by png, but it will not > be as small as the original. > optipng -o7 -nx file.png best compression (stupid brute force method) with no color reduction. the resulting png is valid (TweakPNG), but as expected not supported by luatex. no in this case. > The finer details are in writepng.w from the luatex source and/or > the pdf specification, it is much too detailed to repeat here. > Thanks for the info. :-) > Best wishes, > Taco > ___________________________________________________________________________________ > 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 ___________________________________________________________________________________