ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "George N. White III" <aa056@chebucto.ns.ca>
Subject: Re: Downsampling images in pdfTeX
Date: Tue, 27 Jul 2004 14:47:04 -0300	[thread overview]
Message-ID: <Pine.SGI.4.61.0407271422070.642818@montigo.bio.dfo.ca> (raw)
In-Reply-To: <001101c473ee$6e1cac00$fcb359d5@DJCPX90J>

On Tue, 27 Jul 2004, Mats Broberg wrote:

>> From: ntg-context-bounces@ntg.nl
>> [mailto:ntg-context-bounces@ntg.nl] On Behalf Of George N. White III
>
>> As a general principle, it makes no sense for pdftex to
>> provide image manipulation capabilities.  Such capabilities
>> are useful to a much wider
>> audience than the users of pdftex, so there are lots of tools
>> to do image resampling and format conversions.  All that
>> pdftex should do is support inclusion of pdf.  The limited
>> support for including png images is a convenience, but if you
>> are being careful you would want to make pdf images.
>>
>> --
>> George N. White III  <aa056@chebucto.ns.ca>
>>    Head of St. Margarets Bay, Nova Scotia, Canada
>
> Having checked the pdfTeX documentation, doesn't the internal parameter
> \pdfcompresslevel deal with this? The documentation says:
>
> "compress level This integer parameter specifies the level of text and
> in-line graphics compression. pdfTEX uses zip compression as provided by
> zlib. A value of 0 means no compression, 1 means fastest, 9 means best,
> 2..8 means something in between. Just set this value to 9, unless there
> is a good reason to do otherwise - 0 is great for testing macros that
> use \pdfliteral."

The compression this parameter controls is quite different.  Without 
compression (e.g., \pdfcompresslevel=0) a PDF file consists of almost 
readable text. Even images can be stored in an ASCII encoding.  Setting a 
non-zero value for \pdfcompresslevel applies a lossless compression 
algorithm to objects in the pdf file.

For images that will be displayed only at low resolution it may be useful 
to downsample the original image to reduce the size.  For example you 
might have a 2 inch by 2 inch image scanned at 400 dpi.  This image would 
have 800x800 pixels.  For screen display you might prefer to have a 
200x200 pixel image (or 100 dpi for 2 inches).  Downsampling refers 
to the process of reducing an 800x800 pixel image to 200x200 pixels.
ways to reduce image size (lossy compression, colorspace changes,
even converting certain images to line art).

Some tools to generate PDF include methods to downsample images.
In particular, people who have been using tex-->dvipsone-->distiller 
and are now using just pdftex encounter problems with much larger 
pdf file sizes and excessive load times until they resize the input 
images.

--
George N. White III  <aa056@chebucto.ns.ca>
   Head of St. Margarets Bay, Nova Scotia, Canada

  reply	other threads:[~2004-07-27 17:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-24 19:41 ConTeXt output & commercial printing houses Matt Gushee
2004-07-24 20:21 ` Bill McClain
2004-07-24 20:25   ` Siep Kroonenberg
2004-07-25  9:57 ` Henning Hraban Ramm
2004-07-25 10:01 ` Mats Broberg
2004-07-25 11:58   ` Adam Lindsay
2004-07-25 12:03     ` Mats Broberg
2004-07-27  6:15       ` ConTeXt output & commercial printing houses: Thanks! Matt Gushee
2004-07-27  6:33         ` Brooks Moses
2004-07-27  9:27           ` Siep Kroonenberg
2004-07-27 11:53           ` George N. White III
2004-07-27 15:28             ` Downsampling images in pdfTeX Mats Broberg
2004-07-27 17:47               ` George N. White III [this message]
2004-07-27 19:36                 ` Vit Zyka
2004-07-28 15:54                 ` Peter Münster
2004-07-27  7:36         ` ConTeXt output & commercial printing houses: Thanks! Tobias Hilbricht
2004-07-27 11:47         ` Bill McClain
2004-07-27 15:51         ` Mats Broberg

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=Pine.SGI.4.61.0407271422070.642818@montigo.bio.dfo.ca \
    --to=aa056@chebucto.ns.ca \
    --cc=ntg-context@ntg.nl \
    /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).