From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73992 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: \externalfigure and file size Date: Thu, 19 Jan 2012 09:23:56 +0100 Message-ID: References: <1326932737.5532.74.camel@kip-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1233128445==" X-Trace: dough.gmane.org 1326961471 21380 80.91.229.12 (19 Jan 2012 08:24:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2012 08:24:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 19 09:24:25 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RnnIF-0001N5-1l for gctc-ntg-context-518@m.gmane.org; Thu, 19 Jan 2012 09:24:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 31FD4CB201; Thu, 19 Jan 2012 09:24:22 +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 OZN3W64zwsU0; Thu, 19 Jan 2012 09:24:21 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C29B8CB1F8; Thu, 19 Jan 2012 09:24:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03B85CB1F0 for ; Thu, 19 Jan 2012 09:24:14 +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 UxmzwQScXUfw for ; Thu, 19 Jan 2012 09:24:00 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 4D30ECB1F8 for ; Thu, 19 Jan 2012 09:24:00 +0100 (CET) Original-Received: from mail-iy0-f169.google.com (mail-iy0-f169.google.com [209.85.210.169]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0J8NvB0027929 for ; Thu, 19 Jan 2012 09:23:57 +0100 Original-Received: by iadj38 with SMTP id j38so7515375iad.14 for ; Thu, 19 Jan 2012 00:23:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OWdRTSI7UE3E8a3nyoxk9jFiluLJ12MIr2ClKJhC7Bs=; b=as4kQ7CP1KVeSGV1uJ+2uAt3ljOvGhScHcnbpsJ8bPpBS/6wcmuxbZ+ckuXbwopfrV FPYb2S5auJLrG8o7UoIGaqCB8YzWYJWPfBLuo2dwnfQn+meUp23/iIsFU4NypKTpM1YC OSmIgqGNZMjk/Yu0bA9AviIzLdFRn6caVldi8= Original-Received: by 10.50.47.170 with SMTP id e10mr26206868ign.14.1326961436726; Thu, 19 Jan 2012 00:23:56 -0800 (PST) Original-Received: by 10.50.57.131 with HTTP; Thu, 19 Jan 2012 00:23:56 -0800 (PST) In-Reply-To: <1326932737.5532.74.camel@kip-laptop> 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: 0aGnknVJD - dbe887100e00 - 20120119 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73992 Archived-At: --===============1233128445== Content-Type: multipart/alternative; boundary=14dae9340e3b11165904b6dd4949 --14dae9340e3b11165904b6dd4949 Content-Type: text/plain; charset=UTF-8 On Thu, Jan 19, 2012 at 1:25 AM, Kip Warner wrote: > Hey list, > > I have a number of \externalfigure commands to typeset some svg images. > This is often handy to have them vectorized because it allows for the > user to zoom in on diagrams of great detail. > > In other situations, I find that for images that are not so important, > they would benefit from ConTeXt rasterizing them when they are imported. > The reason for this is I find some vector images get enormously bloated > when they are typeset. As an example, I have a Logo.svg of only 6.8 KB. > The m_k_i_v_Logo.pdf intermediate ConTeXt generates is nearly a megabyte > in size. Why? I have no idea, as they both appear to be the same image > with the same gausian blur. > > Is there a flag I can pass certain instances of \externalfigure that > tells the image processing backend that a simple rasterized version of > the figure is fine? Or is there a better approach? I don't want to > pre-convert all of these images to raster formats. > > ConTeXt uses inkscape, iirc. So try to see what inkscape says about your file. If you are under linux, you can also use rsvg . -- luigi --14dae9340e3b11165904b6dd4949 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Jan 19, 2012 at 1:25 AM, Kip War= ner <kip@thevert= igo.com> wrote:
Hey list,

I have a number of \externalfigure commands to typeset some svg images.
This is often handy to have them vectorized because it allows for the
user to zoom in on diagrams of great detail.

In other situations, I find that for images that are not so important,
they would benefit from ConTeXt rasterizing them when they are imported. The reason for this is I find some vector images get enormously bloated
when they are typeset. As an example, I have a Logo.svg of only 6.8 KB.
The m_k_i_v_Logo.pdf intermediate ConTeXt generates is nearly a megabyte in size. Why? I have no idea, as they both appear to be the same image
with the same gausian blur.

Is there a flag I can pass certain instances of \externalfigure that
tells the image processing backend that a simple rasterized version of
the figure is fine? Or is there a better approach? I don't want to
pre-convert all of these images to raster formats.


ConT= eXt uses inkscape, iirc. So try to see what inkscape says about your file.<= br>If you are under linux, you can also use rsvg .

--
luigi

--14dae9340e3b11165904b6dd4949-- --===============1233128445== 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 ___________________________________________________________________________________ --===============1233128445==--