From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26696 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "cjns...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Re: image that resizes automatically to screen size in epub Date: Sat, 31 Oct 2020 16:34:02 -0400 Message-ID: <20201031203402.gutswizwu477rh3y@turki.local> References: <220286f4-8dab-4a80-9ad6-4794e15f1961o@googlegroups.com> <04e6652d-6db6-4090-b2f1-db7acc33edd2n@googlegroups.com> 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="16453"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD4675FCS4BBBM4U676AKGQEQJQYLRQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Oct 31 21:34:00 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f185.google.com ([209.85.166.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kYxZX-000460-2y for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 31 Oct 2020 21:33:59 +0100 Original-Received: by mail-il1-f185.google.com with SMTP id g14sf7202711ilr.7 for ; Sat, 31 Oct 2020 13:33:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1604176438; cv=pass; d=google.com; s=arc-20160816; b=D2kvDaC/ZOQuSXa+bVoys5/FzE45myeteFwYykbMuleEjeJatZMcCowBnuioKSl7AY CWP85xbmcscp25/f616shvPSZLfV5YZGj8kV/I10Ek+d5qxWcbPr94bPg8lx8qvQet70 0EiK9EKlCDvpGjrEAvwhYAYcsbsMmCPoWFuFN/LccHmPidfB8LVxhap4dARefDSB32Pm 5q88cmJSemOgJ2WlDWWRrrVJaGvPCU08XsFBTmImSqWtovtaWmbVcDC5WiDHnUuPBqTc vBImstWqoD7V7BJrrT/KORgG2tpgpa32bJtt+q/8cYEssJVj8thASI44vEXf3ZCaBdcV gY+A== 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-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:to:from:date:sender :dkim-signature; bh=curMP4OZkrGP53GicsvTE9OBbVKWDzLH7vqiT/DSEaE=; b=dvCl2efH1IxKqhs6ZtWaSuTjlOdv0h29N57uiI6229j8HcaFzwKFb3Y/K1bqANb0Ls NqB9rMXx7qhkIyxIbgC0ssu0ydBiXLDdIgkroNWh4T11Lu9xxbMLnjfkOEVFVR2WSeYs VOtI0UBzZ8zTcF54t0GY7hatHr/utP0eJPfvCMn11WG8tbR7tS0ImCbMrX2ff8DzB+JO K8+D9cnKHehjsO+yHsHuU1vL1nEoGsCnMfW1tJV+hUghoFopBgTOqXn0oxTWHNK+XRlj gJUkSOprrqVw6Q40IvaxtRuyhkbgIIHJI5KvBpPbnf3maq2xKHiPapq/IApGGIN5duF+ VluQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning cjns1989-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 167.206.4.196 as permitted sender) smtp.mailfrom=cjns1989-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :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=curMP4OZkrGP53GicsvTE9OBbVKWDzLH7vqiT/DSEaE=; b=gHY4PiwSiMTiM2Jv99rr9HUJ20idQqKat0wNR6Ks04nic3onwN1pJmEL8C7/yV1aJ4 lezO+mWW4roO9K8i385F0+LE70KSYr6xC/oMKxxWKvUf1BRhxnamQi7L8mV9Y4i1q5e0 /C+5OyheJrBDr2NAvIpjY/ClGYfI5o7eP27E7EmzWj9ZZmONOl1AkgDtQMZhCtTtaFLW PFUmLCcJb7JIRnFooIvk1aGyQDbSaoV+MrYQpH6Kv81pzSobYO4hVgo8q6NAY9IqoZzv cn3hdKTms+0hNzCb8z/Kxrz8z1LY/CtWyb8IuyFLVGouvifSlBNVj72noN52d 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:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding: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=curMP4OZkrGP53GicsvTE9OBbVKWDzLH7vqiT/DSEaE=; b=EKp5vf/bFgazPhbhRNfmu5/jG5oyuor8nTmwOZxb8emp57vK9CGb87VFxkAw0TwVb4 co2Kn2iHlQmq1h2EDIpEEc3BLZpEN0+GwMFXEJWBeYj4oF+wi+aA1f+6bQhbjdU8oiiO agORgaaWJHIGeCp/C/mdBZTpuLuwwhWSkYeZNUaLaZqiqLxU6TbMKA4CL9VQ88bZ4VMM k4bxXBqiiwa6k/0ZdLdDFXG9prDHMmkR53VRSiXgoHDiX9SJPqJlqg6RcqOrPtS7/AEi tfqbuPqvdyQu8Y1C Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530mio0Wwl2B5nbY4c2oV81YqlFZqTQRsKk/l5LODDK54oDrQ+Jv rv/CMzboi3Oin26U12w3kSo= X-Google-Smtp-Source: ABdhPJxV2ZEZX0tXrrajwu90biiIDVEUQvUunpTJBbc2z3gTS0aWwL/Sz7OC1TTgVAU9thA6yiSH/w== X-Received: by 2002:a05:6e02:1202:: with SMTP id a2mr5078510ilq.89.1604176438229; Sat, 31 Oct 2020 13:33:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6602:2e0f:: with SMTP id o15ls313303iow.7.gmail; Sat, 31 Oct 2020 13:33:55 -0700 (PDT) X-Received: by 2002:a6b:1542:: with SMTP id 63mr5927101iov.64.1604176435527; Sat, 31 Oct 2020 13:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604176435; cv=none; d=google.com; s=arc-20160816; b=YsQVfOwTfd5F4zjGiRJ4KYN/obO4ixqrUZPDEiUBZmKAvXbJCu9S5Tat5bjciq2HHN 6BpM2uN/jhrFZexL4ZuTQNXqolxgEBr1aE0JMBniH4SERnShxasOtqr5v0Jl51AhCBhu Wrzj6YYbRAHpFyYv0Eyyk0Go4Yi23M/V/TD061ZQVbjKOS1RWK8+lcrrWg7qiH977tXT RQXU46HRJkE3xsj0e9fHDmB4JrEk9UxtyBYcl/K6/Hdflfie+5LgFYiX2H4tX357Oa6q c1/dY8qRS/utTfCrEzyrXVwDY4Op3dOCo8B9GGYu7tzvQ92Ba4h6Lrsfz0sFynGMgEg1 UxjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:to:from:date; bh=+a6hhQ78zcvN0uywRN0uPpeyPe78ULjHAqJtUec5iS4=; b=xHzNbQPx0XSyWC6zLZrXDSDUmMQMYCooNeRyse5NUOJMLfOHXdgIj121at86InWOwe NKEzmVU9M/oUErgBaC+tx6YUVM5qBGtV1PvCTEB/2FC3dc5GHwXlEzAXZ+y4CdrZe84f koQrVnlL7uoSZVHJNHB7L1bbZrL6OW6rQJVozUQxZ1zu/j/7clwz5Y1ftVh7LPbDSFSs kLMb8J6lMCw2ZtKSEpIG/lgiMgzLEer8KLe2gJ9Lx7QMehj40YbhKC7wjdbfDtqwaPPB PB/6Nw0BCnRa8A85brQ45p2IhFVyVo2BBEDJlC/EFjPu4V+s7uOft66g/4JtLFnetNAS rQdQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning cjns1989-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 167.206.4.196 as permitted sender) smtp.mailfrom=cjns1989-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mta1.srv.hcvlny.cv.net (mta1.srv.hcvlny.cv.net. [167.206.4.196]) by gmr-mx.google.com with ESMTPS id p5si585335ilg.3.2020.10.31.13.33.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Oct 2020 13:33:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning cjns1989-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 167.206.4.196 as permitted sender) client-ip=167.206.4.196; X-Content-Analysis: v=2.3 cv=OIq8IRSB c=1 sm=1 tr=0 a=3EMHnQ48fQ0TTj4NMYavXQ==:117 a=3EMHnQ48fQ0TTj4NMYavXQ==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=LZd5ujC0vyMA:10 a=afefHYAZSVUA:10 a=pGLkceISAAAA:8 a=SSmOFEACAAAA:8 a=GuaQx2JTC7Xz7Qz1KAMA:9 a=QEXdDO2ut3YA:10 a=dMELtNbRz1UA:10 a=ZEXq72yFp68A:10 a=2LnK1_V7T1LgAvW_9NnY:22 Original-Received: from [68.194.25.56] ([68.194.25.56:38446] helo=pavo) by mta1.srv.hcvlny.cv.net (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTPS (cipher=AES256-GCM-SHA384) id 9A/4A-23873-23ACD9F5; Sat, 31 Oct 2020 16:33:54 -0400 Original-Received: from gavron by pavo with local (Exim 4.92) (envelope-from ) id 1kYxZa-000757-6F for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Sat, 31 Oct 2020 16:34:02 -0400 Mail-Followup-To: pandoc-discuss Content-Disposition: inline In-Reply-To: X-Original-Sender: cjns1989-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=softfail (google.com: domain of transitioning cjns1989-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 167.206.4.196 as permitted sender) smtp.mailfrom=cjns1989-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:26696 Archived-At: On Wed, Oct 28, 2020 at 08:21:47PM EDT, John MacFarlane wrote: > John MacFarlane writes: >=20 > > "cjns...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > You can work around this, actually! >=20 > % pandoc -f html -t markdown > 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" preserveAspectRatio=3D"none"> > > > ^D > ![](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjA= wMC9zdmciIHhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLj= EiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdib3g9IjAgMCA5MDAgMTIwMCIgcHJlc= 2VydmVhc3BlY3RyYXRpbz0ibm9uZSI+CjxpbWFnZSB3aWR0aD0iOTAwIiBoZWlnaHQ9IjEyMDAi= IGhyZWY9Ii4uL21lZGlhL3BsMDAxLmpwZyI+PC9pbWFnZT4KPC9zdmc+) >=20 > Just include that Markdown image tag in your document instead of > the HTML svg element, and everything should work properly (with > the pandoc nightly). Clever bit of thinking outside the box that sounded promising.=20 I eventually got the html =E2=86=92 markdown conversion to create the base64-encoded HTML ... but when I run pandoc on the file where I copy-pated '![](data: image... base64)' etc. etc. it creates an OK epub as per epubcheck but when I look inside it contains a ../media/file01.svg (correctly referenced by content.opf) instead of the expected a ../media/file01.jpg. And as to ../media/file01.svg it contains the ... HTML. Not sure if I misread your post and maybe I am not doing it right but as far as I can tell this not doing what was intended. Am I missing something? Thanks, CJ --=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/20201031203402.gutswizwu477rh3y%40turki.local.