From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79524 Path: news.gmane.org!not-for-mail From: Pavel Dohnal Newsgroups: gmane.comp.tex.context Subject: Re: error when using externalfigure Date: Mon, 26 Nov 2012 11:40:55 +0100 Message-ID: References: <50B33B49.9070206@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0892491554==" X-Trace: ger.gmane.org 1353926492 18149 80.91.229.3 (26 Nov 2012 10:41:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2012 10:41:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 26 11:41:44 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tcw8B-0005UF-NG for gctc-ntg-context-518@m.gmane.org; Mon, 26 Nov 2012 11:41:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 105A310279; Mon, 26 Nov 2012 11:41:28 +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 JUA3O953Fn4n; Mon, 26 Nov 2012 11:41:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E6FCD10264; Mon, 26 Nov 2012 11:41:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5CBBA10264 for ; Mon, 26 Nov 2012 11:41:21 +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 Nx4E9sRFoY1t for ; Mon, 26 Nov 2012 11:41:19 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 6E07E1024E for ; Mon, 26 Nov 2012 11:41:19 +0100 (CET) Original-Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAQAfGMo029104 for ; Mon, 26 Nov 2012 11:41:17 +0100 Original-Received: by mail-ie0-f169.google.com with SMTP id c14so3031309ieb.14 for ; Mon, 26 Nov 2012 02:41:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:content-type:x-gm-message-state; bh=M2VUrUpRGsLT0NGUlAdjgkSojJH2DU7WhwgUUf3HACY=; b=YreGTxf4YD0Ru8zVrJxYVZX+65/8iTNBzT3f/KpcnW8i4/RsJKt8aqu13lmyWus4Ik otpbyI5XBMSFj9BFp/njFsm0E4zUpOcEvJq8zk36qGw8dip81hEuZ9KrHv5vNFR9T4tm tn7O0y9yhSofXgtcYMKiS03Oy6E/O8qIDOEwes6BpPv0QMbwCZ/oWm9R6q6Jzw9zH3EE GR+dXY3ajrD3CnyOE/RewTa9E+KONe/nCcex2KCrfczE+mJLPu1QOuMUeL77gaPHYKz2 bbKpb8CHJ+s5L3QNWJUhKpM2743nq95LhaEfD5+69hq56Ks7ABJ97LxbmF+YXT7GzS/A 4/dw== Original-Received: by 10.43.125.133 with SMTP id gs5mr9384452icc.54.1353926475520; Mon, 26 Nov 2012 02:41:15 -0800 (PST) Original-Received: by 10.64.37.8 with HTTP; Mon, 26 Nov 2012 02:40:55 -0800 (PST) X-Originating-IP: [85.207.54.198] In-Reply-To: X-Gm-Message-State: ALoCoQlJ/W0wOWIiAbzksTrQfW8yqAT/9GjT69liwNviKlbyuVp0/O04lGva+moqLqy5P1OHGhql X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.223.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QIsaFgxs - ffc1d1e31e43 - 20121126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79524 Archived-At: --===============0892491554== Content-Type: multipart/alternative; boundary=bcaec517cbe0a01a4204cf639248 --bcaec517cbe0a01a4204cf639248 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 which try convert images on the fly. When I try this particural image convert it gives me this image: http://cdn-images-squared.tripomatic.com/e46c68903d2c4445f05a0369578c17dd-2= 70.jpg But after context runs this file it falls down with error message: !LuaTeX error: reading JPEG image failed (no JPEG header found) =3D=3D> Fatal error occurred, no output PDF file produced! mtx-context | fatal error: return code: 70 Which is even worse, because although the user gets bad PDF it contains some information. In this case there is no pdf created. I looked in gimp for something bad in this image, but it looks ok to me. So do you have any advice what to do? Thanks 2012/11/26 Martin Schr=F6der > 2012/11/26 luigi scarso : > > 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 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 > > _________________________________________________________________________= __________ > --bcaec517cbe0a01a4204cf639248 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 sc= ript (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 which = try convert images on the fly. When I try this particural image convert it = gives me this image:
But after context runs this file it= falls down with error message:

!LuaTeX error: reading JPEG image failed (no JPEG = header found)
=A0=3D=3D> Fatal error occurred, no output PDF f= ile produced!

mtx-context =A0 =A0 | fatal error: r= eturn code: 70

Which is even worse, because although the user gets bad= PDF it contains some information. In this case there is no pdf created. I = looked in gimp for something bad in this image, but it looks ok to me.
So do you have any advice what to do?
Thanks

<= div class=3D"gmail_quote">2012/11/26 Martin Schr=F6der &l= t;martin@oneiros.de<= /a>>
2012/11/26 luigi scarso <luigi.scarso@gmail.com>:
> It has 240x160 pixels and 1ppi, so it's 6,096 me= ters x 4,06400meters

I doubt that 1ppi is intended. :-)

Best
=A0 =A0Martin
_____________________= ______________________________________________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________

--bcaec517cbe0a01a4204cf639248-- --===============0892491554== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0892491554==--