From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18095 Path: news.gmane.org!.POSTED!not-for-mail From: Thomas Blom Newsgroups: gmane.text.pandoc Subject: docx -> markdown: image width and height doesn't respect --dpi? Date: Sun, 27 Aug 2017 20:21:45 -0700 (PDT) Message-ID: <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: multipart/mixed; boundary="----=_Part_5608_798984990.1503890505389" X-Trace: blaine.gmane.org 1503890510 9653 195.159.176.226 (28 Aug 2017 03:21:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2017 03:21:50 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCMLVPERXYMRBSUYR3GQKGQEHAK4GYQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 28 05:21:45 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f60.google.com ([209.85.213.60]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmAcN-000212-Sm for gtp-pandoc-discuss@m.gmane.org; Mon, 28 Aug 2017 05:21:40 +0200 Original-Received: by mail-vk0-f60.google.com with SMTP id s199sf2640126vke.3 for ; Sun, 27 Aug 2017 20:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=G5wFvRtnqcjmq7lWzx+GpX4AaTjUgGfa683UhCk7GR8=; b=gz2gjTBtcUjcaddpDG9rBKsU/KC9WbUl7aIfOFNxJFzo3DmDJr9gBdqbTRYn4uOQG9 6KgWm1YGNuhLc0Bj64veqvmSOzMalJfUvgsXEetmga0j4V5/8pBZOFOGJsKmm8z+ZiII urooc60n835MLb1oK7fStHhNWCXA7hpU+pUZCxx7aeTUkO1HwndPdQ98bgFALY31t+c8 aCfWrwOh6oMypJWlX+ztu9NLX63ecA3204yXPNaOxPp4T1iQkGFIB/ZK80QYKdhda5hv 5nJfVhRPNE/3940b65BZ6mJexAoTTNDHBK50Fdu7ybnhoGiOUqhMBxAXKWGrBqw4P01Z WvEQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=G5wFvRtnqcjmq7lWzx+GpX4AaTjUgGfa683UhCk7GR8=; b=sIN9NcX9YkdUiZ8v4r0W7Ugek+Ibh19FpJOCoJ8sPT02wAPzVf1zEG/nOPzwIGfHx1 7/tEZjl5MTySjl96CQr4vubjPySi6rBHLGETl6tEF2OcYbpHE8nv6BodmYfgYY4vo6WF AT/urVmSV+Ms+08pXGxGj1rcRdR5Auacw7VC9M+HOvkSVoRYwrr/4K6ZeZyeHOyR54Hh 14hgDxMhWjPGA8fJ+5J9d5cc0XrulilvLG0jQiD1JghKX/6rNE1v0l32xnR70/hzKWkU f+hcFOXy/6VfTONVxLFjCGcpaFyCJzWKvTrRzsvpKmVIavE76aKUEnnntoBFYrcWZsWa WErw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=G5wFvRtnqcjmq7lWzx+GpX4AaTjUgGfa683UhCk7GR8=; b=Wv9hQO2qgyKXY7yrt6cM367x3gZsBTrSXQUnR0IK3UWp5OHoyXGpUaGSW8oIGTVPuZ SuaiXGGnoW33TtiS3ZokatAulNAK5vgQGbo5iVvGMIXXYalSuxzU7DtbdydjzG7fMqb2 70LSEhU4YHwIYt8MzwkEtm9LygWmd/Xms3Ebwcf+45tgeM6bjKUZrBrQJOU3pOqdC9ne qzU8WTVoo7bu3ZIIbur4IBnBCAgpAoPs23U+eO+XxudRuuq+vFys2KA99hQjFaVhAktj ee30QO+O0N60Num36CiJ0LvQwWAOMa1Lg1du+vHAhLJPK5Au4eOJJVSCa3jRi/2yQ6vu trDA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHYfb5h0s0nmbNYFeNhLOfKYWdwiprBr54Q6SE3QITb95sC3MoGCVmWi 2+IRJjiXqlBzHg== X-Received: by 10.36.116.12 with SMTP id o12mr207987itc.12.1503890506673; Sun, 27 Aug 2017 20:21:46 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.160.204 with SMTP id o195ls3898145ite.12.canary-gmail; Sun, 27 Aug 2017 20:21:45 -0700 (PDT) X-Received: by 10.36.64.135 with SMTP id n129mr222252ita.6.1503890505893; Sun, 27 Aug 2017 20:21:45 -0700 (PDT) X-Original-Sender: blomcode-Re5JQEeQqe8AvxtiuMwx3w@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:18095 Archived-At: ------=_Part_5608_798984990.1503890505389 Content-Type: multipart/alternative; boundary="----=_Part_5609_1574618287.1503890505389" ------=_Part_5609_1574618287.1503890505389 Content-Type: text/plain; charset="UTF-8" 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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/692f87e9-d992-4d10-a29a-77165f5d5771%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_5609_1574618287.1503890505389 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I convert docx to markdown using pa= ndoc 1.19.2.1 on OSX 10.12 with

pandoc -t markdown= _strict --dpi=3D128 --extract-media=3Dimages 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) do= cument (PNG, 144dpi).

For example, one image in Wo= rd has been sized by the author to be ~4.65inches wide. =C2=A0The resulting= markdown for this image specifies a width of 443 pixels. =C2=A0So I see th= at markdown is using a dpi of 443/4.65 =3D~ 96 regardless of efforts on my = part to change this.

I would like to adjust this b= ecause the images appear smaller at this pixel size than the same images in= Word. =C2=A0I can of course write a post-processing script to adjust sizes= on the markdown document, but would prefer to avoid. =C2=A0It seems like t= he --dpi option makes sense to address my situation?

Thanks,
Thomas Blom

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/692f87e9-d992-4d10-a29a-77165f5d5771%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_5609_1574618287.1503890505389-- ------=_Part_5608_798984990.1503890505389--