Open
Conversation
Member
|
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? |
Member
Author
|
Well, it takes the file in whatever format (not a pixbuf) and makes a base64 encoded text stream out of it. To be honest, I don't know, why this is useful, but somebody requested it (see linked issue). |
Member
I'd be against feature creep, especially if even you don't know what's the purpose of such feature |
Member
Author
|
I propose to wait for a reply from the issue reporter and then see if it is a valid use case. |
Member
|
Sure |
|
I gave a use case here #557 (comment) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the Base64 export. Similar to the PDF or PS export. There is a corresponding entry in the "File" menu to use it.
Base64 stuff taken from https://stackoverflow.com/questions/11301854/perl-convert-image-to-base64