From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79527 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: error when using externalfigure Date: Mon, 26 Nov 2012 11:50:13 +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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353927021 22756 80.91.229.3 (26 Nov 2012 10:50:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2012 10:50:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 26 11:50:32 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 1TcwGl-0001JQ-Ki for gctc-ntg-context-518@m.gmane.org; Mon, 26 Nov 2012 11:50:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53CCC10288; Mon, 26 Nov 2012 11:50:20 +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 g7Co08UXWEss; Mon, 26 Nov 2012 11:50:18 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EC5BA1027B; Mon, 26 Nov 2012 11:50:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 93D761027B for ; Mon, 26 Nov 2012 11:50:16 +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 BXMAgk9Gwhjt for ; Mon, 26 Nov 2012 11:50:15 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 39E5A1026F for ; Mon, 26 Nov 2012 11:50:15 +0100 (CET) Original-Received: from mail-ea0-f169.google.com (mail-ea0-f169.google.com [209.85.215.169]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAQAoEU7012372 for ; Mon, 26 Nov 2012 11:50:14 +0100 Original-Received: by mail-ea0-f169.google.com with SMTP id a12so4439941eaa.14 for ; Mon, 26 Nov 2012 02:50:14 -0800 (PST) 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=GDf+nxv5UNbF95By/NVof3XJ/0SEsquWtEPQi7cuWDA=; b=HjopB8pSnvGCt6qsVJ9+U7cAchlw3itYy22wGa71X0IhDEB0dSYmJYHJpFIfLEad0i YOzetRhk2h8CxaHcShXR8IWoMlc6ZmNcls3ojOr5ykevOBHtiGDK4D81VEv5ULKL1fi0 Hdwt2dNOzM0O8+StANC+yB1b6Ubg4rWgeFwzKNCESzsVuIB3z5zZpgDwyZ0nFJLYq6s3 +MO4O+2N6QOjCmp0rR9rIB9R/JqiJX/ZGIl/OZJPU5SpS0ktNalh9aHVg7EXWuohLnQb h2UF5CRH3598zkKehiHvfZMuSFGeUKzjzpttZU5yo11h/ZINLpbrmdl2hzqiQlwv5NjI lK9g== Original-Received: by 10.14.177.1 with SMTP id c1mr44216730eem.8.1353927013978; Mon, 26 Nov 2012 02:50:13 -0800 (PST) Original-Received: by 10.223.12.140 with HTTP; Mon, 26 Nov 2012 02:50:13 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.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: 08IsaOewD - f51ad8f50877 - 20121126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:79527 Archived-At: On Mon, Nov 26, 2012 at 11:40 AM, Pavel Dohnal 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 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-270.jpg > But after context runs this file it falls down with error message: > > !LuaTeX error: reading JPEG image failed (no JPEG header found) > ==> 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 no errors here for \starttext \externalfigure[e46c68903d2c4445f05a0369578c17dd-270.jpg][width=26.5mm] \externalfigure[e46c68903d2c4445f05a0369578c17dd-270.jpg]%[width=26.5mm] \externalfigure[http://cdn-images-squared.tripomatic.com/e46c68903d2c4445f05a0369578c17dd-270.jpg][width=26.5mm] \stoptext -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________