ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
Subject: Re: shrink JPGs to some resolution (dpi) ?
Date: Tue, 10 Mar 2015 00:18:06 +0100	[thread overview]
Message-ID: <20150309231806.GA22736@hl.fritz.box> (raw)
In-Reply-To: <54FE1DC4.70001@wxs.nl>

On Mar 09, Hans Hagen wrote:

> On 3/9/2015 10:50 PM, Alan BRASLAU wrote:
> 
> >This can be done once and is much better than getting ConTeXt to
> >convert every time on the fly.
> 
> Do you really think that we let context convert a big file each run
> in a critical workflow? Context will only resample when an image
> file changed (which happens when you have to process from
> repositories updated by authors).

I guess that's a question for me ?

of course I don't plan to run context on the big files every time -- as I know that that's still way too slow;)
but it would be nice if I don't need magic external tools to guess 
the correct physical print size, calculate the actual number of pixels for e.g. 300 dpi, etc.

I already have script which extracts all JPGs from a context's pdf using pdfimage,
and then rename them to the "input" file names according to the log file.

right now I shrink the PDFs using 'gs -dPDFSETTINGS="/screen" ...'
and then extract a copy of the small images into some ...-screen/ directory
and use them for all futur context runs.

but using gs or ImageMagick's convert plus some magic log file reading/calculation is a bit ugly,
while context knows all the details about physical image size, native pixel size of input jpgs etc.
so that context perfectly could do the job if asked to (and without huge intermediate PDFs)...


finally I like the idea to be able to create the final PDF in a "single" context run
from *original* source (== original JPGs) without lots of additional tools and steps/scripts
(or if I want to start over "form scratch" from input files).


just an idea... (more to come;-)

Harald
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
                                                       \/\/\/\/\/\/\/\/\/
Harald Koenig                                           //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2015-03-09 23:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-09 21:12 Harald Koenig
2015-03-09 21:47 ` Aditya Mahajan
2015-03-09 23:33   ` Harald Koenig
2015-03-10  0:05     ` Hans Hagen
2015-03-09 21:50 ` Alan BRASLAU
2015-03-09 22:10   ` luigi scarso
2015-03-09 22:25   ` Hans Hagen
2015-03-09 23:18     ` Harald Koenig [this message]
2015-03-10  0:17       ` Hans Hagen
2015-03-10  1:33         ` Harald Koenig
2015-03-10  6:34           ` Henning Hraban Ramm
2015-03-10 11:12           ` Hans Hagen
2015-03-09 21:54 ` Pablo Rodriguez
2015-03-10  6:44 ` Peter Münster
2015-03-10  7:43   ` Harald Koenig
2015-03-10  9:08     ` Peter Münster

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=20150309231806.GA22736@hl.fritz.box \
    --to=koenig@tat.physik.uni-tuebingen.de \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).