From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26359 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: image that resizes automatically to screen size in epub Date: Tue, 06 Oct 2020 21:45:37 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1920"; mail-complaints-to="usenet@ciao.gmane.io" To: Charles Richer Saint-Faure , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB74P6X5QKGQEPBSTYFI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Oct 07 06:45:54 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f58.google.com ([209.85.161.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kQ1Ks-0000OL-1V for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 07 Oct 2020 06:45:54 +0200 Original-Received: by mail-oo1-f58.google.com with SMTP id o74sf543781ooo.4 for ; Tue, 06 Oct 2020 21:45:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1602045953; cv=pass; d=google.com; s=arc-20160816; b=mfbr7EDFnzFpvrCvGetdcPk6DkmDzY7IZkA0Ec0kR5BiWL/vImiswT+Omf0lPcSvrj 0TtofF9CieH9RkFZ78Ny/uYZdoNhh9jm+MwDe6J3HELC6g4crvdtWzL0enOa7Jiw+84J A+tIDbtGlfuaUYM8TztCJ2uM08NeiX1LpccdRAs82V70Piq5Ep9hxBOssWuc9OWH6tbH 5K544xOKr1LNy5kG37R5FbBZ+eLvALOu04uOrrDafQZx4B/WZ81AxQ12jIUVCQaKI3TK qpYQyrwqBnMB28LbweRuqsqo3E16rX7920t23P0tsV0PK9MezkLqAl3CEH7jOVvsib2w rMxw== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=sYXCTZb6TPWFL5Dx1hf9ZC7loM7r5iH8MMSVYf0fFOk=; b=aqv1ibWbJq5dGUoKqB8kNR0xVhye1b9bUhU2fF3Qojj6fadjJpLgyN5NGKYby9M80C mvWOMPQvQ+EObf5XTDU2kVSrfPFg1j1lywrSHIO0Dd498fLAYPn1epLqMHL2Nc5EeNTJ eqkA8Y0zj8WPGOhcyao2F+or8r/ebP8WXdv4fPGOFPaE9OxAsFsm13MfehdVH4YQf5FS wtDe30b+pu70bN/d4WIbjv3WTgJMFwwUqe31C26wIJm3yRE3berKuy5HCFNrBtu3TINA 4B1K3HlbmTpjvrlkaZjOEEMf7Kjzt4eYaV0wX2U3SqE7TAq1euv1X3tjUkLDjp1SJl21 9JuA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="aH5B3D/d"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1030 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:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding: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=sYXCTZb6TPWFL5Dx1hf9ZC7loM7r5iH8MMSVYf0fFOk=; b=lzkU/C6ii8bgHlxDD7Kpz1Ah7dSexbFlw6YQWwPnKjtrLTjNwQSyiofLM8IR0DzvNi vaSDYJJIJvHawACa6U3DfeGrMiLtp66ZUdWiifsK/Iy9RL1MPOTz2Z6zuznMNmqlgYmt +bQzXYOKs8cJz3P3IZjnxjriCJSprIILNYGth+Xk1CIaIZ7CeDNNa/cxNZWcw49l3dR3 HfUg43C16+B2XB/nUpuMTRbywGI9nZXvsHFGiPeaTZmI4E8AAJ4+g3RyvQ2kyOqJxWWT PtjJLoimVZX4OU4F/wJKkNXmSZudL0iW3LgdsMRI33MR3zHNCeEcgsG/dUM08bcUCsdP 50eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :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=sYXCTZb6TPWFL5Dx1hf9ZC7loM7r5iH8MMSVYf0fFOk=; b=uBSmV0yqou6m5O6t+DKckEhDRww76YgtPdaju5MnQnxmSMYWvlFqOC6hRGVj1531Ou Y1Y8ieoMwVYouxdrUMmpuwq7KHgbAALhjzS7weRv+p5h+hsQsMH99KZ4SdI/MtWyrjro AQIBROMMNL/1z4cjw9hIIe1Xil+xcbWh0NTVmjdo/37R3orezsOSX/jIMvf9HAYmJVvX s/BsK0VP1ABv4/srQjcumfnlvkybC1hU9XW8aFTVoN8kd3Ug/B5Jo3DFmhWS2CAYAmk8 jRuYU8Ss0filtWVWDwtu3I7rKNudabnENyf14pACrjuxpyRLe1QL5yaYes7U9I7fnovT Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530MPfnGLEsRcRZe36Iy8ewnH1MCChyho1tZa262VO6CdwN6IeCQ gmkel1YQ/kRLi4nMvnWHgb8= X-Google-Smtp-Source: ABdhPJybR3Iu0QE9K+Kw/iHUiy7U/ZSfVTTcBt12hxL9nRd+9PLcgcraalnvoYiAKs6+8PkaDC94sg== X-Received: by 2002:aca:abce:: with SMTP id u197mr866914oie.135.1602045953111; Tue, 06 Oct 2020 21:45:53 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:77cc:: with SMTP id w12ls162064otl.9.gmail; Tue, 06 Oct 2020 21:45:51 -0700 (PDT) X-Received: by 2002:a05:6830:10d5:: with SMTP id z21mr836031oto.292.1602045951101; Tue, 06 Oct 2020 21:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602045951; cv=none; d=google.com; s=arc-20160816; b=R+OWrTas/mi79A3nj3IwwQYZLigLjj/SFNYc/+uZWZHD8HK8s62i3BMLXWrGUJigaL ahzVU68IzF7+7YPVBENq8B2dOH+Fkkb0UyrWl9Ocz62ryLl+UmfkV7V3JnCNbDA6ernj KSwT8xJAo0y+rfOfApcJO8qdxSallnLwN7Pt456fMXaAFlNG+tIEqXG9LoOZx8YNTZ0u y0/Kse7qX415qjNSXokN/6IaRI1N7TmcC2i98V5/SN84S5LfeVKMzhhVEorSncILzOhO REeKKOrBz8MmNRDn+7jngSg+E9usS27fVwjOsGvM79jCxI0XA5YZ1eMrALI8iZdYYGja wddw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=URRySkbzX1E9d/rgvvMqt0WAm+Sk85WBKRLdY1peWWY=; b=Fkm4a4EgWJPcN3nLLZAA+XknVsdeFdBXkWccnQkhQ505vvdFju+qAQaOrTUWwoMfTI Kgv1fBQW9mAenz+ritRyceF81bYjL4w6o7lkrZot5Wk034U9KPr21+21VkAb55OEbLQ6 w/wvogPhMCj05uaU6rg1sfIyVJ2hBqilQ+I9ocoIVWI0KB3P9+58gmfW4OIo7uUh8P9G oTl9U39hFq2Jjm/rashF2vDWj6flU7/oriSRmoUHLtmbOjOKyekxt7QNyDG9FNuLs/ZW Ouj+EQRVTeKdvsq4OfZlg85TsZ+rPHUs/wjBRNw5gR16+hIz3smFr88WZQHa+49bB/+Y ciDQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="aH5B3D/d"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1030 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com. [2607:f8b0:4864:20::1030]) by gmr-mx.google.com with ESMTPS id o22si108957otk.2.2020.10.06.21.45.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Oct 2020 21:45:51 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1030 as permitted sender) client-ip=2607:f8b0:4864:20::1030; Original-Received: by mail-pj1-x1030.google.com with SMTP id j8so419332pjy.5 for ; Tue, 06 Oct 2020 21:45:51 -0700 (PDT) X-Received: by 2002:a17:902:7e82:b029:d3:f3b5:d99a with SMTP id z2-20020a1709027e82b02900d3f3b5d99amr416057pla.7.1602045950187; Tue, 06 Oct 2020 21:45:50 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id d64sm991595pfc.183.2020.10.06.21.45.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 21:45:49 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 4776CA23F; Wed, 7 Oct 2020 00:45:38 -0400 (EDT) In-Reply-To: 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="aH5B3D/d"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1030 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.io gmane.text.pandoc:26359 Archived-At: Pandoc will include images in the EPUB, but it doesn't look inside svg elements (or other raw HTML content). Charles Richer Saint-Faure writes: > On Sunday, June 14, 2020 at 6:15:47 PM UTC-4, Chris Jones wrote: >> >> I have an image meant to be fit exactly one page (or should I say=20 >> screenful) that I would like the e-reading application to resize=20 >> automatically to the size of the e-reader's screen while preserving aspe= ct=20 >> ration as is already done with the cover image. >> >> The image can be a png, jpeg, or svg (the png and jpeg are generated fro= m=20 >> the svg, itself created initially under latex as a pdf and converted to = svg=20 >> via inkscape). >> >> The svg file displays correctly under firefox and can be resized with no= =20 >> visible loss of crispness & resolution. >> >> Is there any way to do this currently in pandoc? >> >> Thanks, >> >> CJ >> > > **Update**=20 > > I thought I'd experiment a little and use some "raw=20 > latex": = = = =20 > =20 > = = = = =20 > =20 > | # Planche=20 > 7 = = = =20 > =20 > | id=3D"cover-image"> = = = = =20 > =20 > | xmlns:xlink=3D"http://www.w3.org/1999/xlink" version=3D"1.1" width=3D"100= %"=20 > height=3D"100%" viewBox=3D"0 0 900 1200"=20 > preserveAspectRatio=3D"none"> = = =20 > =20 > | /> = = = =20 > =20 > |=20 > = = = = =20 > =20 > |=20 > = = = = =20 > =20 > = = = = =20 > =20 > This html snippet below the #h1 markdown title works as expected when I= =20 > manaually create the epub: the pl7.jpg image is automatically sized to th= e=20 > full size of a 4:3 screen (by most ereader=20 > software). = = =20 > =20 > = = = = =20 > =20 > But when I run a "pandoc md/snippet.md -o snippet.epub" command or such t= he=20 > ensuing epubcheck complains about not finding pl7.jpg in the epub. A quic= k=20 > look inside the epub reveals that the jpeg image is not referenced in the= =20 > EPUB/content.opf (the "manifest", I believe they call it...) and that=20 > pandoc did not > = = = = =20 > =20 > In effect it looks as if pandoc silently ignores the contents of the ... />=20 > tag. = = = =20 > =20 > = = = = =20 > =20 > Is this the expected=20 > behaviour? = = = =20 > =20 > = = = = =20 > =20 > If so what would be the recommended=20 > workaround=C2=B9? = = = =20 > =20 > = = = = =20 > =20 > Thanks, = = = = =20 > =20 > = = = = =20 > =20 > CJ = = = = =20 > > --=20 > 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 view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/a0514cc8-560e-40b2-802e-aed2b58930a8o%40googlegroups.com. --=20 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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/m2k0w2od8u.fsf%40MacBook-Pro.hsd1.ca.comcast.net.