bugnet
bugnet copied to clipboard
Embed inline images into html
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.
This would be nice to see throughout the app, by using a ckeditor plugin http://ckeditor.com/addon/base64image
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)
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.
This might be a good approach, seems easy: http://www.dailycoding.com/posts/convert_image_to_base64_string_and_base64_string_to_image.aspx
That looks good.