From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18098 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: docx -> markdown: image width and height doesn't respect --dpi? Date: Mon, 28 Aug 2017 07:57:32 -0700 Message-ID: <20170828145732.GI57370@Johns-MacBook-Pro.local> References: <692f87e9-d992-4d10-a29a-77165f5d5771@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1503932265 23975 195.159.176.226 (28 Aug 2017 14:57:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2017 14:57:45 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBZO6SDGQKGQEJPNETPI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 28 16:57:41 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f59.google.com ([209.85.214.59]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmLTq-0005gd-Om for gtp-pandoc-discuss@m.gmane.org; Mon, 28 Aug 2017 16:57:34 +0200 Original-Received: by mail-it0-f59.google.com with SMTP id 77sf179350itj.12 for ; Mon, 28 Aug 2017 07:57:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1503932261; cv=pass; d=google.com; s=arc-20160816; b=T6SvhfFAf/F15pGWAu2x52oPveuykjiCVpNxYLDyQ56YY8F9Ld9jtMfV4bWEGU4ibj 04tYgfjPIFB38TQ7oCxOFEhnQzHObNrFW/q40gmeRxIi3MlKELskMoz0TyNXG2cppZUN p7ml1iUpDtbcYLO6nWl5CIvZzncOr9QDTniAkv9O+iSzWcvf3ws8K6UYNv9bPRyp32/Y Ddr5GTeeM/f6HzOgO0a/AoFidI6xa6CsLwOXkRgG0XrFF1ph9ruTRbBscpJ5jUSWnIp4 HPtgUUTlfhXYq6C21/U/6Fz9ihSwd/xg98vmiV0p05v1C/LJuZFtqcKbYdcxI/XZmsWO q8rA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=w3dSHPe3ngLVffnXNPssXl6x9iECGQGpCmPHfcdLGtA=; b=rgeXa0Mt5x9PFIYd+3lrm/FVQ91W7gefFLf9TDqWPl4/QUD2s+0Wt68i52mku6Q1zJ 0HdEE8AR7ndyA5BCqrjmKC9zYDOe3+ShnHBnBEqb5uFknUc0JVaSbmy0FjJCHz/NI2Z6 c1VT64Y6TM6A/MxjokYkyKDZTi0HA28N8UidACVuYb+XXU8Sm84rFsovwxgF9OqXZHim sHL0AS2RNaFsN8Lfh+5iAnmg11RpRkQWqvNhyI8IsYgsbHLLj0nBLVHZkQZNCe1OPpvH 4KFYVImQpeFI416DAtsVBw+ue502IacLHr9v0/HO99p4JQAMvB8Jx1s+0HXh7GMz60ul ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Jn+FHhov; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::230 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=w3dSHPe3ngLVffnXNPssXl6x9iECGQGpCmPHfcdLGtA=; b=afYwBnsq62Bk+FSIJgXx7JN1lfM6XvMCG009QggaOep1FAX8Sq217xUYkVmjidvb9I UlExzZbdavsODShBLhdfyBdhJvPQyjqzdUr0L1aweYl110EozCeHXyt+zyVkz9xiF+VG jkME5UnRT/SQ5WFKgiwoqPFZ2WN3BUIrxDKxeG6cFQyrooloX4bW5UN0JlPJGj7jDwTu 80DnCZNiGEeqRPBzupwJsZwPNJal9VHczTDcSez8nIdSyumaVyQb8qSVWoJG+qjSgdpF Pywuxj4vWM0GAhLsMp/QNPmPEACUVg/wP36QDVKhujbiiyeIU9sV3itlzmJPiPwA+SbA RyFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=w3dSHPe3ngLVffnXNPssXl6x9iECGQGpCmPHfcdLGtA=; b=s0AJTDIZrrd3kFhS17G9KQOc61/soXxgECjIhzPhZ6r/zcCsXKy2Gu0caDGjfWzdY+ 0ytIEu/4VSWJXn30W2VWhHND4wW38arRxrdPR3+wu8M2NqcbnO3SOQHO6IuGZ/5yu29u RLq688CNBLkIFQoC2PlRqFfyEfFpMh7o86AIwqQy4jMUBhOZZ7ZVF2FpVFPrYgAcIHrP 2pidsF6JGiy1VuqoLWcnmOhBTucHh4v6/PlClVuDFJxSxw4l2MBnjcTzEFZ58gOzRzDT 8MeQVqn+xj8jBaEdoiGr3YwQThl9sfmPpx6IajeRn7uHXXyDd9Xevl6Y2ovAkWrzNmEn Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHYfb5iw2HBmKiK7OjSp/eeMiDZt4T1uJasxCCp9yLYix+7Azm64r3dV /T6A1chAumd4cg== X-Received: by 10.36.53.137 with SMTP id k131mr20443ita.4.1503932261654; Mon, 28 Aug 2017 07:57:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.172.134 with SMTP id v128ls454625ioe.13.gmail; Mon, 28 Aug 2017 07:57:40 -0700 (PDT) X-Received: by 10.129.53.9 with SMTP id c9mr601057ywa.50.1503932260887; Mon, 28 Aug 2017 07:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503932260; cv=none; d=google.com; s=arc-20160816; b=ZJzcZs30h8ecJCslKnwa65cC5k9wdqQ7azhfn0petcgwe7J7HRtZs1urL6BmPWJj0w fjXlDojU/oTX2VaGE7BrVgWzC703fp39yAuo4kBdCqyWKvVghMNaorhqY303s7n83EOU btitek6hfz2nh527a3SL21xSIMzi4YFVGRhMEL1QE5YjdEDpAreHofPRVmoSWUnoeVpX kRF8mSkjzz0MnXn/6Q+XOIlfGjOekDIU/fcsynUBt1dg06xInDqhL419W58ssiozZ8pV I3Fmp2BmVytjLl+K0I1/N+fyjvcA9rwDHk0Y28zoiPDHt3ic84PBGx09YQnvNgHJLqJY hE/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=jN3q12n+Pwkqkx6FiOITVMf15dgIzyy5vuvmcfBQAc4=; b=vADdXOtFat6cS/MmSQlF89nu5Mm9gC1RqvCjGAOHvGBfbj0y9rCiZvItN5jjgZXI8L wAR9Ns27AbvHnGTvPBd/YnjPMZ7A2iJuvn340n9yH1ItNNtHfu+iEMV4FYTxJnZztlw2 P8YqBAwF9BzTiwDz8BlmNz7nJ8oDdcVQeldAav35JS0NtJNr8keVIO+IoMuU1FWJ3DFb LntC9H3GfQZB/jd4zwS2e1AbnXooBzsYxZwfiWg4XDt3NXSHoe4HnS15bXztMnwizJLX k94re2EWLR2OK5E1ou+k6PowRpQlGWYxEJfvdGb+x13tGZlcptPI88bJq8By24q6Huao 4Rcw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Jn+FHhov; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::230 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf0-x230.google.com (mail-pf0-x230.google.com. [2607:f8b0:400e:c00::230]) by gmr-mx.google.com with ESMTPS id q87si112043pfa.6.2017.08.28.07.57.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Aug 2017 07:57:40 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::230 as permitted sender) client-ip=2607:f8b0:400e:c00::230; Original-Received: by mail-pf0-x230.google.com with SMTP id z87so1963021pfi.3 for ; Mon, 28 Aug 2017 07:57:40 -0700 (PDT) X-Received: by 10.84.254.79 with SMTP id a15mr1057732pln.444.1503932260207; Mon, 28 Aug 2017 07:57:40 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id 77sm1358483pfz.47.2017.08.28.07.57.38 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2017 07:57:39 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 4C69AA1C5; Mon, 28 Aug 2017 10:57:28 -0400 (EDT) Content-Disposition: inline In-Reply-To: <692f87e9-d992-4d10-a29a-77165f5d5771-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Jn+FHhov; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::230 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18098 Archived-At: Can you give us a simple docx file to test with? +++ Thomas Blom [Aug 27 17 20:21 ]: > Hi, > I convert docx to markdown using pandoc 1.19.2.1 on OSX 10.12 with > pandoc -t markdown_strict --dpi=128 --extract-media=images mydoc.docx > -o mydoc.md > I find that the image sizes in the markdown appear to be based on a > 96dpi image resolution no matter what --dpi I specify, and also no > matter the meta-data in the files embedded in the (word for mac 2011) > document (PNG, 144dpi). > For example, one image in Word has been sized by the author to be > ~4.65inches wide. The resulting markdown for this image specifies a > width of 443 pixels. So I see that markdown is using a dpi of 443/4.65 > =~ 96 regardless of efforts on my part to change this. > I would like to adjust this because the images appear smaller at this > pixel size than the same images in Word. I can of course write a > post-processing script to adjust sizes on the markdown document, but > would prefer to avoid. It seems like the --dpi option makes sense to > address my situation? > Thanks, > Thomas Blom > > -- > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [3]https://groups.google.com/d/msgid/pandoc-discuss/692f87e9-d992-4d10- > a29a-77165f5d5771%40googlegroups.com. > For more options, visit [4]https://groups.google.com/d/optout. > >References > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 3. https://groups.google.com/d/msgid/pandoc-discuss/692f87e9-d992-4d10-a29a-77165f5d5771-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 4. https://groups.google.com/d/optout