From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72316 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: terrible png placement Date: Fri, 11 Nov 2011 10:13:38 +0000 Message-ID: <2C88B7F6-31FE-4B32-99C4-228053109DA3@uva.nl> References: 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 1321006449 21224 80.91.229.12 (11 Nov 2011 10:14:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2011 10:14:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 11 11:14:04 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 1ROo7T-0003Gv-N9 for gctc-ntg-context-518@m.gmane.org; Fri, 11 Nov 2011 11:13:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 159EDCB0D0; Fri, 11 Nov 2011 11:13:58 +0100 (CET) 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 LNzXhEwJVYef; Fri, 11 Nov 2011 11:13:52 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8FACCB0D1; Fri, 11 Nov 2011 11:13:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8875CB0D1 for ; Fri, 11 Nov 2011 11:13:50 +0100 (CET) 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 zAT7jAeZNzjJ for ; Fri, 11 Nov 2011 11:13:39 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 95F25CB0D0 for ; Fri, 11 Nov 2011 11:13:39 +0100 (CET) Original-Received: from holleman.uva.nl (holleman.uva.nl [146.50.108.228]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pABADdtE022575 for ; Fri, 11 Nov 2011 11:13:39 +0100 Original-Received: from bijvoet.uva.nl (146.50.108.241) by holleman.uva.nl (146.50.108.228) with Microsoft SMTP Server (TLS) id 14.1.339.1; Fri, 11 Nov 2011 11:13:38 +0100 Original-Received: from ketelaar.uva.nl ([fe80::cc61:4c73:c438:df97]) by bijvoet.uva.nl ([::1]) with mapi id 14.01.0339.001; Fri, 11 Nov 2011 11:13:38 +0100 Thread-Topic: [NTG-context] terrible png placement Thread-Index: AQHMoEIoydz880wxjUSDUFJIZGC/J5WnY+AA In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] Content-ID: <9F0B090079183947B3246E0FB7A84AA1@uva.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.228; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03FTKdDqx - 4efe6524c1da - 20111111 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:72316 Archived-At: Sofar I received 2 reactions. (1) Can't reproduce here; I get a 70KB pdf with your file and image. ConTeXt standalone, 32-bit Linux, mkiv, version 2011.10.01 10:48. (2) I've encountered the same problem. The PDF is 1.8MB big. Compressed with qpdf (qpdf --stream-data=compress) its only 60KB! Latest beta on OS-X 10.7.2 Further search for the cause: My system is also OS-X 10.7.2 and latest beta. To find the culprit I reverted to an older version of ConTeXt. ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.11.11 int: english/english Now the filesize becomes 72KB instead of 1.8 MB. This one seems OK. CONCLUSION: This must have been introduced in one of the beta's later than 2011.10.14 and in or before the current one: ConTeXt ver: 2011.11.04 14:15 MKIV. I kindly suggest Hans takes a look into the matter. Hans van der Meer On 10 nov. 2011, at 21:22, Hans van der Meer wrote: > Something terrible must be done to png pictures, either in ConTeXt or in luatex. > I have the following minimal sample code and picture. I include the png for those who want to check. > > % Test png addition. > \starttext > Place png figure.\par > \placefigure{Test figure}{\externalfigure[test.png]} > \stoptext > > Without the png-picture it makes an 8KB pdf. > But with the png-picture the pdf swells to 1.8MB. > And that for a png-picture of only 48KB. > Moreover making a zip of all this stuff brought the size back to 110KB. > In the log: > ConTeXt ver: 2011.11.04 14:15 MKIV fmt: 2011.11.10 int: english/english > mkiv lua stats > graphics processing time - 0.001 seconds including tex, 1 processed images ___________________________________________________________________________________ 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 ___________________________________________________________________________________