public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How to convert from base64 to regular images on the same format (ipynb)?
@ 2021-12-15 21:11 Pedro Bacellar
  0 siblings, 0 replies; only message in thread
From: Pedro Bacellar @ 2021-12-15 21:11 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1228 bytes --]

Hi,

I have a Jupyter notebook with base64 images  and I would like to make a 
copy in which the new notebook does not have base64 images but instead uses 
regular markdown references to images on the filesystem.

I would expect that the command below to do the job, but the new notebook 
still has base64 images.
pandoc test.ipynb --extract-media=images -o output_test.ipynb

I am puzzled, because this works with self contained htmls: if I create a 
self contained html (with base64 images) from the test.ipynb with
pandoc test.ipynb --self-contained --metadata title="test" -o test.html

And then extract the images from this html and output a new html without 
base64 images, everything works as expected.
pandoc test.html --extract-media=images -o output_test.html

What am I missing?

Thanks in advance,
Pedro


-- 
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/msgid/pandoc-discuss/16ee16fc-f801-4fc6-b646-5ecec0b044d2n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2117 bytes --]

[-- Attachment #2: test.ipynb --]
[-- Type: application/x-ipynb+json, Size: 10626 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-15 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15 21:11 How to convert from base64 to regular images on the same format (ipynb)? Pedro Bacellar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).