On 11/26/2012 8:54 PM, Dr. Hartmut Henkel wrote:
On Mon, 26 Nov 2012, Hans Hagen wrote:
On 11/26/2012 10:36 AM, luigi scarso wrote:
On Mon, Nov 26, 2012 at 10:20 AM, Pavel Dohnal
wrote: I have a big context source file which contains pictures from different sources. The problem is, that there are some pictures the context cannot process. It displays an error message and ends. I run the context from another script in batchmode. After finishing, the context creates a PDF file, which contains this problematic picture but the pdf is broken. It does not have numbers in the table of contents and it is not arranged by setup. Here is a minimal example: \starttext \externalfigure[http://cdn-locations-images.tripomatic.com/img-poi1295-5ZTynx-s.jpg][width=26.5mm] \stoptext
i just tried the minimal example here, it gives a valid PDF with a properly (afaics) scaled image.
Creator: ConTeXt - 2012.11.26 13:31 Producer: LuaTeX-0.70.2
when I save the jpg as eps from gimp I see width = 6096,00 height=4064,00
tried, can't see here.
The first value is off for TeX.
if i print the values from the img object i get
17344.8pt 11563.2pt
so the problem is deep down in the jpg reader ... the image is crippled in the sense that it has no valid resolution information
something for hartmut to check in the img lib
can't confirm. Is this solved already?
the latest beta clips ... something: local maxdimen = 2^30-1 function img.check(figure) if figure then local width = figure.width local height = figure.height if height > width then if height > maxdimen then figure.height = maxdimen figure.width = width * maxdimen/height end elseif width > maxdimen then figure.width = maxdimen figure.height = height * maxdimen/width end return figure end end so it's taken care of (in principle the img library is right in handling
maxdimen dimensions as lua has no such limit)
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 -----------------------------------------------------------------