From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79425 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: Images in MultiMarkdown -> context -> PDF Date: Wed, 21 Nov 2012 21:36:59 +0100 Message-ID: References: <50AC5BB4.4010205@wisc.edu> <1F8187F3-69EF-4DA3-8150-D6682B92E595@wisc.edu> <50AD1AAA.1040302@wisc.edu> 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 1353530256 20340 80.91.229.3 (21 Nov 2012 20:37:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 20:37:36 +0000 (UTC) Cc: mailing list for ConTeXt users To: Guy Stalnaker Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 21 21:37:47 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 1TbH3K-000323-TE for gctc-ntg-context-518@m.gmane.org; Wed, 21 Nov 2012 21:37:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E7CB6103EE; Wed, 21 Nov 2012 21:37:35 +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 vx89XCjFdp33; Wed, 21 Nov 2012 21:37:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 621E8102F0; Wed, 21 Nov 2012 21:37:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ADC4E102F0 for ; Wed, 21 Nov 2012 21:37:32 +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 ztq98gvHT8Sv for ; Wed, 21 Nov 2012 21:37:32 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id E8B5D101F1 for ; Wed, 21 Nov 2012 21:37:31 +0100 (CET) Original-Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qALKbUai008716 for ; Wed, 21 Nov 2012 21:37:31 +0100 Original-Received: by mail-ie0-f169.google.com with SMTP id 10so13562554ied.14 for ; Wed, 21 Nov 2012 12:37:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=YuGBLgBnS/AQG7qNsTA4crf8QxtMFLFgsdAs1YcdVg4=; b=Uz6U8UBowntenM12yfZAT2+RLoAaDZ1QCRhp0X5PxvmQg/AVnNRDTHbQgWCV2oDxtW tSocGeRxknrdW+aprDSqC3uQ1nuLmA3EAa/54fbtjZamzMWZwO3P7TnZKNqoONRdFYPM DTCOkCK6KY5Z21323OkU2GLUXuyfALbHG305KmGnyY/edji15oMuoETSGpnlNJSgIFyB h6hxfdz97WU2sznHsLtTwZObdCBFfs4uUGN3bsR5iJX/l1xGRi4DGarUnEbJO872PjO7 PJOWjHaWIw/RloIBkk/UlFlMdMWsHeMYTNbXOWepa3qdHg04Lmi974IHE2mH+YixReyE 18IA== Original-Received: by 10.50.187.165 with SMTP id ft5mr885038igc.12.1353530250132; Wed, 21 Nov 2012 12:37:30 -0800 (PST) Original-Received: by 10.64.5.138 with HTTP; Wed, 21 Nov 2012 12:36:59 -0800 (PST) In-Reply-To: <50AD1AAA.1040302@wisc.edu> 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: 0VIqkBuP7 - 3832244d3333 - 20121121 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:79425 Archived-At: Guy wrote: > Well, that lead to an interesting experiment. I used convert to -resample a > set of images to 300dpi and redid the compile. They are all now too bod, > many off the right side of the page. Then did the same but set to 72. They > are still too big. Odd, from too small to too big. I think you don't want -resample, but -density: # density given in dpi convert pic.jpg -density 72 pic-out.jpg convert -density keeps the pixel size and changes the display size by setting the density metadata. convert -resample keeps the display size and changes the pixel size by resampling at a certain density. (This explains why the picture remained the same too-large size when you resampled at 72 and 300 dpi.) Because you want to change the display size (and also because resampling is a lossy process), I think you want -density. As for the density value you want to use: Your picture is 547px wide, so if you want it to display it 3 inches wide you should set its density metadata to 547/3 = 183 dpi. Does this work? All the best, Sietse ___________________________________________________________________________________ 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 ___________________________________________________________________________________