Skip to content

Conversation

Photon89
Copy link
Member

@Photon89 Photon89 commented Aug 11, 2023

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

@Photon89 Photon89 requested a review from DarthGandalf August 11, 2023 19:32
@Photon89 Photon89 linked an issue Aug 11, 2023 that may be closed by this pull request
@Photon89 Photon89 changed the title Fix 557: Add Base64 export Fix #557: Add Base64 export Aug 11, 2023
@DarthGandalf
Copy link
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?

@Photon89
Copy link
Member Author

Photon89 commented Aug 11, 2023

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).

@DarthGandalf
Copy link
Member

I don't know, why this is useful

I'd be against feature creep, especially if even you don't know what's the purpose of such feature

@Photon89
Copy link
Member Author

I propose to wait for a reply from the issue reporter and then see if it is a valid use case.

@DarthGandalf
Copy link
Member

Sure

@LespiletteMaxime
Copy link

I gave a use case here #557 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Base64 copy/export

3 participants