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