ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: jpeg problem: Dimension too large
Date: Tue, 10 Mar 2015 10:30:53 +0100	[thread overview]
Message-ID: <CAG5iGsBzpjEgbBrYemO8xjPKwMN2tjM91eFHrS8vfoDvaHYQ5g@mail.gmail.com> (raw)
In-Reply-To: <54FEB09B.1090507@wxs.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2880 bytes --]

On Tue, Mar 10, 2015 at 9:51 AM, Hans Hagen <pragma@wxs.nl> wrote:

> On 3/9/2015 10:18 PM, Harald Koenig wrote:
>
>> Hi,
>>
>> and here a 1st problem including (some) JPGs which are created/converted
>> using "convert"
>> from ImageMagick (using ImageMagick-6.8.6.9-2.28.1.x86_64 from openSUSE
>> 13.1 -- just in case...)
>>
>> btw. -- I'm using a decent standalone context installation, full log file
>> attached...
>>
>> running "context j1.tex" I get
>>
>>         LuaTeX warning: arithmetic: number too big
>>         graphics        > inclusion > limiting natural dimensions of
>> './IMG_9712c1_bad.jpg' (height)
>>
>
> when i provide more detail here:
>
> graphics        > inclusion > limiting natural dimensions of
> './IMG_9712c1_ok.jpg', old -32768pt * 17778.42pt, new -30197.89787pt *
> 16383.99998pt
>
> so we have a bug in the engine (or jpg library)
>
>
 convert IMG_9712c1_bad.jpg IMG_9712c1_bad_1.jpg
IMG_9712c1_bad_1.jpg now wroks

identify -verbose IMG_9712c1_bad_1.jpg > o1
identify -verbose IMG_9712c1_bad.jpg > o


 $ diff o o1
1c1
< Image: IMG_9712c1_bad.jpg
---
> Image: IMG_9712c1_bad_1.jpg
7c7
<   Units: Undefined
---
>   Units: PixelsPerInch
20,23c20,23
<       mean: 124.329 (0.487564)
<       standard deviation: 17.5202 (0.0687068)
<       kurtosis: 2.41664
<       skewness: -1.26318
---
>       mean: 124.324 (0.487547)
>       standard deviation: 17.5075 (0.0686569)
>       kurtosis: 2.41645
>       skewness: -1.2637
27,30c27,30
<       mean: 111.362 (0.436713)
<       standard deviation: 15.7153 (0.0616287)
<       kurtosis: 2.28057
<       skewness: -1.32468
---
>       mean: 111.364 (0.436722)
>       standard deviation: 15.7186 (0.0616417)
>       kurtosis: 2.2811
>       skewness: -1.32482
34,37c34,37
<       mean: 93.8436 (0.368014)
<       standard deviation: 14.7826 (0.0579712)
<       kurtosis: 1.96665
<       skewness: -1.31581
---
>       mean: 93.842 (0.368008)
>       standard deviation: 14.7911 (0.0580042)
>       kurtosis: 1.96604
>       skewness: -1.31629
42,45c42,45
<       mean: 109.845 (0.430764)
<       standard deviation: 16.0464 (0.0629269)
<       kurtosis: 5.8085
<       skewness: -1.07043
---
>       mean: 109.844 (0.430759)
>       standard deviation: 16.0454 (0.0629232)
>       kurtosis: 5.81176
>       skewness: -1.07339
66,67c66,67
<     date:create: 2015-03-10T09:44:29+01:00
<     date:modify: 2015-03-10T09:29:18+01:00
---
>     date:create: 2015-03-10T10:19:42+01:00
>     date:modify: 2015-03-10T10:19:42+01:00
70c70
<     signature:
9a007a0aa8c2cec2e9a4a7c6be79b538eac50590d343c3f31e2b0dbe1561e2dc
---
>     signature:
3b838a4b66f58fb8e4b06578358c51e6efb8cc72ff7a5f4a88acf6f42067e228
72c72
<     filename: IMG_9712c1_bad.jpg
---
>     filename: IMG_9712c1_bad_1.jpg

shows that Units: Undefined
is the problem.
Imo, this is a bad jpg that should be fixed  and not a bug of luatex.

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 4714 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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-10  9:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-09 21:18 Harald Koenig
2015-03-10  8:35 ` luigi scarso
2015-03-10  8:42 ` Hans Hagen
2015-03-10  8:51 ` Hans Hagen
2015-03-10  9:30   ` luigi scarso [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=CAG5iGsBzpjEgbBrYemO8xjPKwMN2tjM91eFHrS8vfoDvaHYQ5g@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --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).