[NTG-context] error when using externalfigure

2012-11-26 Thread Pavel Dohnal
Hello, 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

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Hans Hagen
On 11/26/2012 10:20 AM, Pavel Dohnal wrote: Hello, 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.

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread luigi scarso
On Mon, Nov 26, 2012 at 10:20 AM, Pavel Dohnal pavel.doh...@twobits.cz wrote: Hello, 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

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Hans Hagen
On 11/26/2012 10:36 AM, luigi scarso wrote: On Mon, Nov 26, 2012 at 10:20 AM, Pavel Dohnal pavel.doh...@twobits.cz wrote: Hello, 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

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Pavel Dohnal
2012/11/26 Hans Hagen pra...@wxs.nl On 11/26/2012 10:20 AM, Pavel Dohnal wrote: Hello, 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

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread luigi scarso
On Mon, Nov 26, 2012 at 10:50 AM, Hans Hagen pra...@wxs.nl wrote: On 11/26/2012 10:36 AM, luigi scarso wrote: On Mon, Nov 26, 2012 at 10:20 AM, Pavel Dohnal pavel.doh...@twobits.cz wrote: Hello, I have a big context source file which contains pictures from different sources. The problem

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Martin Schröder
2012/11/26 luigi scarso luigi.sca...@gmail.com: It has 240x160 pixels and 1ppi, so it's 6,096 meters x 4,06400meters I doubt that 1ppi is intended. :-) Best Martin ___ If your question is of interest to others as

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Pavel Dohnal
I can see the problem. Image has wrong information in its header. But what to do with it? As I mentioned before, I create context source by another script (PHP script) and php runs context. I have thousands of images so it is impossible to me every single image convert. But I created php gate

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread luigi scarso
On Mon, Nov 26, 2012 at 11:40 AM, Pavel Dohnal pavel.doh...@twobits.cz wrote: I can see the problem. Image has wrong information in its header. But what to do with it? As I mentioned before, I create context source by another script (PHP script) and php runs context. I have thousands of images

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Robert Blackstone
On 26 Nov 2012, at 11:41 , Pavel Dohnal pavel.doh...@twobits.cz , wrote: When I try this particural image convert it gives me this image: http://cdn-images-squared.tripomatic.com/e46c68903d2c4445f05a0369578c17dd-270.jpg But after context runs this file it falls down with error message: I

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Hans Hagen
On 11/26/2012 11:00 AM, luigi scarso wrote: On Mon, Nov 26, 2012 at 10:50 AM, Hans Hagen pra...@wxs.nl wrote: On 11/26/2012 10:36 AM, luigi scarso wrote: On Mon, Nov 26, 2012 at 10:20 AM, Pavel Dohnal pavel.doh...@twobits.cz wrote: Hello, I have a big context source file which contains

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Sietse Brouwer
This seems to me a case of garbage in, garbage out; I'd say it's the script's job, rather than ConTeXt's, to ensure the images have the correct dpi to get a reasonable width in inches. (Brr. I hate inches. Disgusting, Mars-mission-wrecking way of measuring things.) Here is some pseudocode. You'd

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Dr. Hartmut Henkel
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 pavel.doh...@twobits.cz wrote: I have a big context source file which contains pictures from different sources. The problem is, that there are some pictures

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Hans Hagen
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 pavel.doh...@twobits.cz wrote: I have a big context source file which contains pictures from different sources.