ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* shrink JPGs to some resolution (dpi) ?
@ 2015-03-09 21:12 Harald Koenig
  2015-03-09 21:47 ` Aditya Mahajan
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Harald Koenig @ 2015-03-09 21:12 UTC (permalink / raw)
  To: ConTeXt users

Hi,

so here's my very generic question #1 for my India book:

is it possible that context (lua?) will "shrink" all \externalfigure jpegs
automatically to some specified dpi resolution and quality
(e.g. 300 dpi with 95% jpeg 'quality' for print and
100 dpi and 75% for screen quality) ?

since I'm only using Linux, using Acrobat unfortueately is not an option (thanks, Adobe:-(


that book will be ~100 A4 pages with ~50% and 50% pictures, 
trying to have 2 pictures per page with text flowing around.

the pictures are JPG photos with quite high resolution, upto 24 Mpixel.
so those picutres are HUGE and horrible overkill for a final print
on A4 with typical images withs around 0.5\textwith.


I know about ghostscript being able to convert/shrink PDFs,
but first the "original" PDF with full size JPGs with be really huge,
and ghostscript takes ages to shrink them.  so that's not real fun 
doing this too often...


right now I write the real typeset size of all images to the log file
and use some external script to calculate the current resolution
and then create a new set of images which e.g. 300 dpi.

but that's still an ugly hack still has some issues with EXIF data, rotation, clipping, ...
and right now leads to strage problems (see mext mail;)



any hints to read the original large JPGs, but only write "print quality" 300dpi images,
or low quaity 75dpi images for speed (and saving net bandwidth when mailing PDFs
to co-workers of the group)?


thanks,

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-03-10 11:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-09 21:12 shrink JPGs to some resolution (dpi) ? 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
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

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).