ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Joshua Krämer" <joshua.kraemer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: ntg-context-wvrSQK3plZs@public.gmane.org
Subject: Re: Which Image quality should I use ?
Date: Sun, 13 Jul 2014 13:10:58 +0200	[thread overview]
Message-ID: <20140713131058.291abc62@medea1.site> (raw)
In-Reply-To: <BLU436-SMTP59A43E559DD35EA151832DB1080@phx.gbl>

On 2014-07-12, 14:58, Pol Stra wrote:

> I wonder, what can I do to reduce the size of those files while
> keeping a printable quality document?

Besides reducing the resolution, you can reduce the number of colours
used in a PNG picture, which is called colour quantization.  For
example, we can differentiate between ca. 12 levels of gray (between
black and white) with our eyes.  So it is useless to differentiate
between hundreds of different colours in a gray picture.  I quantize
all my gray pictures to use 12 colours only, and the difference is
usually not visible, but it leads to a much smaller file size.  For
coloured pictures, you need of course more different colours, you have
to try different values with each picture to find the best number.  I
use the tool pngnq for quantization.

After quantization, one can further losslessy compress an image by
removing unnecessary meta informations from the file, which can be
done automatically with the tool Trimage.

I've got both pngnq and Trimage from the repositories of my Linux
distribution.

Kind regards,
Joshua


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context-wvrSQK3plZs@public.gmane.org / 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
___________________________________________________________________________________


      parent reply	other threads:[~2014-07-13 11:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-12 12:58 Pol Stra
2014-07-12 14:14 ` Peter Münster
2014-07-13  7:59   ` Pol Stra
2014-07-15 17:03     ` Peter Münster
2014-07-15 17:13       ` Aditya Mahajan
2014-07-15 19:52       ` Hans Hagen
2014-07-13 10:06 ` Henning Hraban Ramm
2014-07-13 11:10 ` Joshua Krämer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140713131058.291abc62@medea1.site \
    --to=joshua.kraemer-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=ntg-context-wvrSQK3plZs@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).