From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79521 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 10:56:49 +0100 Message-ID: References: <50B335F5.20701@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1667978750==" X-Trace: ger.gmane.org 1353923841 26916 80.91.229.3 (26 Nov 2012 09:57:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2012 09:57:21 +0000 (UTC) Cc: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 26 10:57:34 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 1TcvRU-0007YB-UK for gctc-ntg-context-518@m.gmane.org; Mon, 26 Nov 2012 10:57:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5E6A010264; Mon, 26 Nov 2012 10:57: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 UjGrOoJGQFPj; Mon, 26 Nov 2012 10:57:18 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 683BE10244; Mon, 26 Nov 2012 10:57:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EE5ED10244 for ; Mon, 26 Nov 2012 10:57: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 Z-IJqEaM912A for ; Mon, 26 Nov 2012 10:57:15 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id B8D4510243 for ; Mon, 26 Nov 2012 10:57:15 +0100 (CET) Original-Received: from mail-ia0-f169.google.com (mail-ia0-f169.google.com [209.85.210.169]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAQ9v9T3016434 for ; Mon, 26 Nov 2012 10:57:12 +0100 Original-Received: by mail-ia0-f169.google.com with SMTP id r4so9766301iaj.14 for ; Mon, 26 Nov 2012 01:57:09 -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:cc:content-type:x-gm-message-state; bh=LftixIkfocia9bfvyFSVFnK7Hkbrc702q7BP+3nceDc=; b=X+Z+UsewwBIcZDonF+qfrS7HTLeN2xsZCLWMwMT8fHK8iHWf2m7gYIc+7PtqFm1Qqj wFQqpWwggP1omlM5hRcU++BX4zg2Orq0T5c39mggwBQeRT71Ypfr8tvRwwBu1Oju0lqN yCbPPyGmsWXeHhbSC/smGMlqmd1JQTikAi0/Ao8lO8EvXeAWwa5GtHTSsq6Ho7izU2is j8AOMqXQerxtRSXZiLj+pbxmxcAd6wtPCr0ucV9oQhJOlTBuLWxfD779jJ0lX4T3bupT SdyoCJg65sGLqySVSvKsLNTJglw7oUOolLchD7scD8aEeryl2E7qRJBy0+rQV+qLByQH zJgg== Original-Received: by 10.50.0.193 with SMTP id 1mr10597174igg.0.1353923829264; Mon, 26 Nov 2012 01:57:09 -0800 (PST) Original-Received: by 10.64.37.8 with HTTP; Mon, 26 Nov 2012 01:56:49 -0800 (PST) X-Originating-IP: [85.207.54.198] In-Reply-To: <50B335F5.20701@wxs.nl> X-Gm-Message-State: ALoCoQk0mNygG6u40VgEmRkjV+YW2J2YpjwPAtGyKFIfoSpxl/sodFZ3GkHhYwvY7Q46X8d951K2 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.210.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: 0RIs9VaUk - 04c18c406b4c - 20121126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:79521 Archived-At: --===============1667978750== Content-Type: multipart/alternative; boundary=e89a8f502f8ee5716404cf62f4a3 --e89a8f502f8ee5716404cf62f4a3 Content-Type: text/plain; charset=ISO-8859-1 2012/11/26 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. 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 >> >> When I run the context, it prints: >> ! Dimension too large. >> > > it all depends on the original ... how small is it? one pixel? one option > is then to scale in two steps: > > \scale[width=26.5cm]{\**externalfigure[...][width=1mm]**} > > or so > > ------------------------------**------------------------------**----- > 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 > ------------------------------**------------------------------**----- > Original file has width 240px and height 160px but no mather what I try: \scale[width=26.5cm]{\**externalfigure[...][width=1mm]**} \scale[width=26.5cm]{\**externalfigure[...][width=240mm]**} \scale[width=26.5cm]{\**externalfigure[...][width=240px]**} I got allways the same result with "Dimension too large" error message Pavel Dohnal --e89a8f502f8ee5716404cf62f4a3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2012/11/26 Hans Hagen = <pragma@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 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][w= idth=3D26.5mm]

\stoptext

When I run the context, it prints:
! Dimension too large.

it all depends on the original ... how small is it? one pixel? one option i= s then to scale in =A0two steps:

\scale[width=3D26.5cm]{\externalfigure[...][width=3D1mm]}

or so

-------------------------------------------------------------= ----
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 Hans Hagen | PRAGMA ADE
=A0 =A0 =A0 =A0 =A0 =A0 =A0 Ridderstraat 27 | 8061 GH Hasselt | The Netherl= ands
=A0 =A0 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0| ww= w.pragma-pod.nl
-------------------------------------------------------------= ----


Original file has width 240px an= d height 160px but no mather what I try:
\scale[width=3D26.5cm]{\= externalfigure[...][width=3D1mm]}
\scale[width=3D26= .5cm]{\externalfigure[...][width=3D240mm]}
\scale[width=3D26.5cm]{\externalfigure[...][width=3D240px]}
I got allways the same result with "Dimension too large&= quot; error message

Pavel Dohnal
--e89a8f502f8ee5716404cf62f4a3-- --===============1667978750== 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 ___________________________________________________________________________________ --===============1667978750==--