bugnet icon indicating copy to clipboard operation
bugnet copied to clipboard

Embed inline images into html

Open vmasanas opened this issue 10 years ago • 5 comments

It's common that people add an email to the email to explain an issue. Currently the mailbox feature allows to add the images as attachments. Would be great if these could be inlined in the actual description of the issue. Or if possible provide a setting to enable/disable this option.

vmasanas avatar Feb 13 '15 23:02 vmasanas

This would be nice to see throughout the app, by using a ckeditor plugin http://ckeditor.com/addon/base64image

dubeaud avatar Feb 17 '15 14:02 dubeaud

By using the editor you can do this already: open any image editor select and copy. Then just go to the editor and paste. You'll see how it pastes the image in an embedded Base64 string. My point is if we could use the same approach to detect embedded images from the mailboxreader and embbed them into the html using the same technique (instead of adding as attachments)

vmasanas avatar Feb 17 '15 14:02 vmasanas

I didn't realize that the CKEditor did this by default now. Sure, we can use the same approach for image attachments in the mailboxreader.

dubeaud avatar Feb 17 '15 20:02 dubeaud

This might be a good approach, seems easy: http://www.dailycoding.com/posts/convert_image_to_base64_string_and_base64_string_to_image.aspx

vmasanas avatar Feb 17 '15 20:02 vmasanas

That looks good.

dubeaud avatar Feb 18 '15 17:02 dubeaud