Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 2D3EA632656 for ; Sat, 3 Jul 2010 19:48:56 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 68504-10 for ; Sat, 3 Jul 2010 22:48:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wy0-f174.google.com (mail-wy0-f174.google.com [74.125.82.174]) by mail.postgresql.org (Postfix) with ESMTP id 7F05F63237C for ; Sat, 3 Jul 2010 19:48:48 -0300 (ADT) Received: by wyf23 with SMTP id 23so1729875wyf.19 for ; Sat, 03 Jul 2010 15:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=5sb/gY15ijzA+q8NAhmYw2i8f5hSOUj5j22fCSWNuM8=; b=cwksvCgx/GPsoeqUAXQI3bsYOm6e+RCFVft3txK4boFRjApi7YKfAEWxRa90DzZRb8 0LFXavWWZ3tG9qeOWR0rJijIH8Ndves/SEq0glWT30mB0HIP70Hm3AZevpKSJO3zEgXq YGa0Mq0f/qY1xC0IkqVooNS5jlim0KzKB+NTo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=oNIWW/K6M069Zf6Uo+CixTlYXDXGUfZ03Tw2mZQHbDouly0ljNXpOHFLHIW2xZZfbA +ylz29O8fDCM6NF07hyvphzyCSVR6TpZfqVIWSJ65QiKpRneQWk+CP5LXXh5lzOwE07o 4avLpTJm88ZAsJ5p0l86lLxup8MXJSTtTTWeQ= Received: by 10.227.157.84 with SMTP id a20mr939454wbx.39.1278197326250; Sat, 03 Jul 2010 15:48:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.156.193 with HTTP; Sat, 3 Jul 2010 15:48:25 -0700 (PDT) In-Reply-To: References: <1278124002.25901.12.camel@vanquo.pezone.net> <201007030241.o632fZ609530@momjian.us> From: Thom Brown Date: Sat, 3 Jul 2010 23:48:25 +0100 Message-ID: Subject: Re: Documentation and explanatory diagrams To: Bruce Momjian Cc: Peter Eisentraut , Tom Lane , Alvaro Herrera , Rafael Martinez , pgsql-docs , Marc Fournier Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201007/36 X-Sequence-Number: 5692 On 3 July 2010 13:59, Thom Brown wrote: > On 3 July 2010 03:41, Bruce Momjian wrote: >> Peter Eisentraut wrote: >>> On fre, 2010-07-02 at 22:15 -0400, Bruce Momjian wrote: >>> > > 500k of source for just half a dozen simple images? =A0There's >>> > something >>> > > seriously wrong there. =A0I suspect the PNGs could be compressed a = lot >>> > > more, but right now I'm wondering exactly how verbose the dia >>> > "source" >>> > > representation is. >>> > >>> > Here is the PNG URL: >>> > >>> > =A0 =A0 =A0 =A0 http://momjian.us/expire/pgsql-docs/img/ >>> > >>> > and the dia files: >>> > >>> > =A0 =A0 =A0 =A0 http://momjian.us/expire/pgsql-docs/dia/ >>> >>> The dia stuff is XML that should compress well. >> >> Gzip takes the dia directory from 526k to 42k. =A0And of course gzip doe= s >> little for the PNG files. >> > > How configurable is the generation process for these PNGs? =A0It's just > that they don't appear to be optimised. > > For example, pgclient_server.png is created at 75,089 bytes, but can > be reduced to 15,643 bytes like in the attached file > (pgclient_server2.png) by using a 16-colour indexed palette. > > Thom > Being a bit more generous, and using a 32-colour palette, it looks like it yields a typical saving of 75% Original images: 40290 file_based_log_shipping.png 54211 hot_standby.png 52400 page_layout.png 75089 pgclient_server.png 49117 pg_dir_layout.png 17692 pg_lines_code.png 41723 pg_standby.png 25135 pitr.png 10946 postgresql_hist.png 34156 streaming_replication.png 68679 tablespaces.png 18197 vacuum.png TOTAL: 487635 bytes 32-colour palette images (compression %): 10700 file_based_log_shipping2.png (73.44%) 14245 hot_standby2.png (73.72%) 9896 page_layout2.png (81.11%) 13786 pg_dir_layout2.png (81.64%) 6347 pg_lines_code2.png (87.08%) 11211 pg_standby2.png (36.63%) 18173 pgclient_server2.png (56.44%) 7148 pitr2.png (71.56%) 3873 postgresql_hist2.png (64.62%) 8969 streaming_replication2.png (73.74%) 15338 tablespaces2.png (77.67%) 5846 vacuum2.png (67.87%) TOTAL: 125532 bytes (74.26%) ..just an idea anyway. Thom