Open LespiletteMaxime opened 1 year ago
@LespiletteMaxime I opened a PR implementing this feature (linked above), feel free to test!
@LespiletteMaxime
Base64 is not an image format. Base64 encodes a stream of bytes to stream of text. These bytes could be whatever: PNG, JPG, PDF, SVG even.
What exactly does this export mean?
@DarthGandalf, I know it's not an image format, but I can export in pdf with shutter who is not an image format too, I give you a use case for exemple, when I write a document in markdown with many screenshots it can be convenient to include the screenshot with base64 string instead of dealing with X .jpg files who will have to be linked in some way with the document.
pdf is a defined file format, which you can open with common pdf-reading tools to see the image on your screen. Even though technically the format supports more than images.
base64 is just a way to change sequence of bytes to another sequence of bytes, you can't take an arbitrary sequence of bytes and meaningfully show it on screen as an image.
be convenient to include the screenshot with base64 string instead of dealing with X .jpg
Ok, it looks like you want not a "base64", but specifically jpg encoded as base64, and jpg is an actual image format. No idea though how you can include base64 (even with jpg inside) in markdown to preserve its imageness. Whoever looks at this markdown page would need to know to decode base64 and then decode jpg from it?
@DarthGandalf, Thanks for your quick reply, I use obsidian, which integrates base64 images perfectly. In fact, my current workflow is to take a screenshot, save the capture as a .jpg or .png, get the base64 of it and then delete the image. The ability to directly obtain the base64 from a capture in shutter would be a real time saver for me. I fully understand that this may seem like an unnecessary option for many people, but I haven't found any image capture software that allows me to do this.
Demo of base64 in obsidian
Hello,
It would be really useful to be able to copy or export a capture in base64.
Thanks