Open XCanG opened 4 years ago
Have you tried with --extract-media=PATH
?
No, I didn't know about that parameter. With even --extract-media=.
it would work, but it not create extension for image which is a bit of a problem.
Is there any way to convert and put base64 into src=""
argument itself?
For part data:image/XXX;base64,
you may determine by reading binary data of first characters and check which format is encoding here.
Also, this option can be useful, to built-in images into the result: https://pandoc.org/MANUAL.html#option--self-contained
pandoc 2.7.3 Compiled with pandoc-types 1.17.5.4, texmath 0.11.2.2, skylighting 0.8.1
I have fb2 with images, however I need to create html5 file to be able to read it later, but the problem, what image data are lost after conversion.
Code example:
between binary tags there a lot of data, image itself, and there several images used there.
Tags are converted into this:
But image info are not copied.
What you can do here is paste base64 images straight into src tag, example 1x1px transparent png: