From: Hans Hagen <pragma@wxs.nl>
To: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: shrink JPGs to some resolution (dpi) ?
Date: Tue, 10 Mar 2015 12:12:21 +0100 [thread overview]
Message-ID: <54FED195.60005@wxs.nl> (raw)
In-Reply-To: <20150310013315.GA8706@hl.fritz.box>
On 3/10/2015 2:33 AM, Harald Koenig wrote:
> On Mar 10, Hans Hagen wrote:
>
>> anyway, i need to think a bit about it but we do have all the info
>> available, like
>>
>> - needed width/height
>> - original width/height
>>
>> and from that we can calculate some conversion parameters
>
> if you start thinking/working on this, some data from EXIF
> might be interesting and helpful too, esp. the "Orientation".
> using that data, automatic rotation to the "correct" orientation
> would be possible.
>
> maybe there are more interesting information in the exif data?!
> what about color space infos ?
> or time stamps or GPS data which might be used to be typeset...
>
>
>> if it would help you i can provide a tracker that will save info
>> like this (per image):
>
> that would be great as my current \message{} stuff is far from being perfect...
Luigi and I looked into the engine bit and decided that it makes no
sense to intercept it there as it would mean obscuring possible errors.
But, I can intercept it in context so that is what happens now. You will
get something:
LuaTeX warning: arithmetic: number too big
graphics > inclusion > image './IMG_9712c1_bad.jpg' has bad
dimensions (-32768pt,23849.10001pt), discarding
I also added a tracker:
\starttext
% \pdfimageresolution300
\enabletrackers[graphics.lognames,graphics.usage]
\externalfigure[IMG_9712c1_ok]
\externalfigure[IMG_9712c1_bad]
\stoptext
btw, you can simulate some of the issues with setting
\pdfimageresolution to 1-10
The tracker makes a file <jobname>-figures-usage.lya that has two
subtables, one with found images, and another with how they are used,
including an error flag.
I'll upload a beta.
Now who will wikify this ...
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-03-10 11:12 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
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 [this message]
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=54FED195.60005@wxs.nl \
--to=pragma@wxs.nl \
--cc=koenig@tat.physik.uni-tuebingen.de \
--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).