From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90525 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: jpeg problem: Dimension too large Date: Tue, 10 Mar 2015 10:30:53 +0100 Message-ID: References: <20150309211828.GA18849@hl.fritz.box> <54FEB09B.1090507@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0780381241==" X-Trace: ger.gmane.org 1425979901 24408 80.91.229.3 (10 Mar 2015 09:31:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Mar 2015 09:31:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 10 10:31:30 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YVGVd-0004SD-QX for gctc-ntg-context-518@m.gmane.org; Tue, 10 Mar 2015 10:31:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 15B3610228 for ; Tue, 10 Mar 2015 10:31:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DQKlbqpo_pw6 for ; Tue, 10 Mar 2015 10:31:28 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1B8081022F for ; Tue, 10 Mar 2015 10:31:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 51FA6101EC for ; Tue, 10 Mar 2015 10:30:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6GKOvDIjVu3g for ; Tue, 10 Mar 2015 10:30:55 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 6DAB3101E8 for ; Tue, 10 Mar 2015 10:30:55 +0100 (CET) Original-Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t2A9UsTP024918 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 10 Mar 2015 10:30:54 +0100 Original-Received: by widex7 with SMTP id ex7so1256725wid.1 for ; Tue, 10 Mar 2015 02:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=eCr8wcskpDprpfDcer2IpDM9C4u7oudqQp9gzgqfgi8=; b=PqihZYgL4UVYLC4Uo/bg/mdRZaLPFg3Syj5maWHNZH1Ez7f+u+nvbf+PYdFDv5fWoC usRyim1pLrFu7jlp9EkieA5nu2Vxknc9E5bw+nk0cq2Mm8yZmi/BnWecjoPm27R8we+9 ldOetuvgSuJCBeAN4q1cOLrntkMHdZseaKTR4ZASffQcv3I0B49duwGH8ViDlO+gjE/o U1cglS54u+2qWzXP1LdFybKfFoYTutkwt9xrElzVsKve8Uk7L0R0HYt5Nh2oj3Wguag+ b5ifgekc3QnD5eqq+xcJk+yo7occCYWmOjWeUlK8ckKNaF+arLBISv+cjRq8X5od9w0D SVwQ== X-Received: by 10.180.104.66 with SMTP id gc2mr110892182wib.34.1425979853838; Tue, 10 Mar 2015 02:30:53 -0700 (PDT) Original-Received: by 10.194.120.167 with HTTP; Tue, 10 Mar 2015 02:30:53 -0700 (PDT) In-Reply-To: <54FEB09B.1090507@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::231; country=IE; latitude=53.3478; longitude=-6.2597; http://maps.google.com/maps?q=53.3478,-6.2597&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01O1JuSc8 - e7718c0ab961 - 20150310 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of luigi.scarso@gmail.com designates 2a00:1450:400c:c05::231 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::231; envelope-from=; helo=mail-wi0-x231.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:90525 Archived-At: --===============0780381241== Content-Type: multipart/alternative; boundary=f46d043bdde4a5244c0510ebce33 --f46d043bdde4a5244c0510ebce33 Content-Type: text/plain; charset=UTF-8 On Tue, Mar 10, 2015 at 9:51 AM, Hans Hagen 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 --f46d043bdde4a5244c0510ebce33 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, Mar 10, 2015 at 9:51 AM, Hans Hagen <pragma@wxs.nl> = wrote:
On 3/9/2015 10:18 PM, Harald Ko= enig wrote:
Hi,

and here a 1st problem including (some) JPGs which are created/converted us= ing "convert"
from ImageMagick (using ImageMagick-6.8.6.9-2.28.1.x86_64 from openS= USE 13.1 -- just in case...)

btw. -- I'm using a decent standalone context installation, full log fi= le attached...

running "context j1.tex" I get

=C2=A0 =C2=A0 =C2=A0 =C2=A0 LuaTeX warning: arithmetic: number too big
=C2=A0 =C2=A0 =C2=A0 =C2=A0 graphics=C2=A0 =C2=A0 =C2=A0 =C2=A0 > inclus= ion > limiting natural dimensions of './IMG_9712c1_bad.jpg' (hei= ght)

when i provide more detail here:

graphics=C2=A0 =C2=A0 =C2=A0 =C2=A0 > inclusion > limiting natural di= mensions 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)


=C2=A0convert IMG_9712c1= _bad.jpg IMG_9712c1_bad_1.jpg
IMG_9712c1_bad_1.jpg now wroks<= br>

identify -verbose IMG_9712c1_bad_1.jpg > o1= =C2=A0
identify -verbose IMG_9712c1_bad.jpg > o
=
=C2=A0
=C2=A0$ diff o o1=C2=A0
1c1
< Image: IMG_9712c1_bad.jpg
---
> Image:= IMG_9712c1_bad_1.jpg
7c7
< =C2=A0 Units: Undefined<= /div>
---
> =C2=A0 Units: PixelsPerInch
20,23c20= ,23
< =C2=A0 =C2=A0 =C2=A0 mean: 124.329 (0.487564)
= < =C2=A0 =C2=A0 =C2=A0 standard deviation: 17.5202 (0.0687068)
< =C2=A0 =C2=A0 =C2=A0 kurtosis: 2.41664
< =C2=A0 =C2=A0 = =C2=A0 skewness: -1.26318
---
> =C2=A0 =C2=A0 =C2=A0= mean: 124.324 (0.487547)
> =C2=A0 =C2=A0 =C2=A0 standard devi= ation: 17.5075 (0.0686569)
> =C2=A0 =C2=A0 =C2=A0 kurtosis: 2.= 41645
> =C2=A0 =C2=A0 =C2=A0 skewness: -1.2637
27,30= c27,30
< =C2=A0 =C2=A0 =C2=A0 mean: 111.362 (0.436713)
< =C2=A0 =C2=A0 =C2=A0 standard deviation: 15.7153 (0.0616287)
<= div>< =C2=A0 =C2=A0 =C2=A0 kurtosis: 2.28057
< =C2=A0 =C2= =A0 =C2=A0 skewness: -1.32468
---
> =C2=A0 =C2=A0 = =C2=A0 mean: 111.364 (0.436722)
> =C2=A0 =C2=A0 =C2=A0 standar= d deviation: 15.7186 (0.0616417)
> =C2=A0 =C2=A0 =C2=A0 kurtos= is: 2.2811
> =C2=A0 =C2=A0 =C2=A0 skewness: -1.32482
34,37c34,37
< =C2=A0 =C2=A0 =C2=A0 mean: 93.8436 (0.368014)
< =C2=A0 =C2=A0 =C2=A0 standard deviation: 14.7826 (0.0579712)<= /div>
< =C2=A0 =C2=A0 =C2=A0 kurtosis: 1.96665
< =C2=A0= =C2=A0 =C2=A0 skewness: -1.31581
---
> =C2=A0 =C2= =A0 =C2=A0 mean: 93.842 (0.368008)
> =C2=A0 =C2=A0 =C2=A0 stan= dard deviation: 14.7911 (0.0580042)
> =C2=A0 =C2=A0 =C2=A0 kur= tosis: 1.96604
> =C2=A0 =C2=A0 =C2=A0 skewness: -1.31629
=
42,45c42,45
< =C2=A0 =C2=A0 =C2=A0 mean: 109.845 (0.43076= 4)
< =C2=A0 =C2=A0 =C2=A0 standard deviation: 16.0464 (0.06292= 69)
< =C2=A0 =C2=A0 =C2=A0 kurtosis: 5.8085
< =C2= =A0 =C2=A0 =C2=A0 skewness: -1.07043
---
> =C2=A0 = =C2=A0 =C2=A0 mean: 109.844 (0.430759)
> =C2=A0 =C2=A0 =C2=A0 = standard deviation: 16.0454 (0.0629232)
> =C2=A0 =C2=A0 =C2=A0= kurtosis: 5.81176
> =C2=A0 =C2=A0 =C2=A0 skewness: -1.07339
66,67c66,67
< =C2=A0 =C2=A0 date:create: 2015-03-10T0= 9:44:29+01:00
< =C2=A0 =C2=A0 date:modify: 2015-03-10T09:29:18= +01:00
---
> =C2=A0 =C2=A0 date:create: 2015-03-10T1= 0:19:42+01:00
> =C2=A0 =C2=A0 date:modify: 2015-03-10T10:19:42= +01:00
70c70
< =C2=A0 =C2=A0 signature: 9a007a0aa8c2= cec2e9a4a7c6be79b538eac50590d343c3f31e2b0dbe1561e2dc
---
> =C2=A0 =C2=A0 signature: 3b838a4b66f58fb8e4b06578358c51e6efb8cc72ff7= a5f4a88acf6f42067e228
72c72
< =C2=A0 =C2=A0 filename= : IMG_9712c1_bad.jpg
---
> =C2=A0 =C2=A0 filename: I= MG_9712c1_bad_1.jpg

shows that=C2=A0Units: Undefin= ed=C2=A0
is the problem.
Imo, this is a bad jpg that sh= ould be fixed =C2=A0and not a bug of luatex.

-- <= br>
luigi
--f46d043bdde4a5244c0510ebce33-- --===============0780381241== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0780381241==--