Author Topic: Compose message insert image base64 encoded  (Read 4296 times)

Offline szistvan

  • Newbie
  • *
  • Posts: 4
Compose message insert image base64 encoded
« on: December 19, 2013, 11:01:09 AM »
HI!

I use the 0.9.5 version of roundcube.
Writing letters html -> image insert: should be given the URL of the image.
The recipient correspondent for the external reference is disabled. The image is not displayed. Must be enabled.

The solution: base64 encoding of the image. For example, at this address: http://webcodertools.com/imagetobase64converter
Then be inserted into the HTML source. For example:
Code: [Select]
<img alt="" src="data:image/jpeg;base64,/9j/4AA...... [...]
Can be solved to avoid having to paste the image URL in the options?
Images can be inserting choose from: URL give or upload an image. Base64 encode the image uploading from automatically.

I found plugin (I do not know that it works): http://myroundcube.com/myroundcube-plugins/embed_images-plugin
Unfortunately I did not find where to download it.

The help is appreciated!

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Re: Compose message insert image base64 encoded
« Reply #1 on: December 20, 2013, 02:29:49 AM »
Hi,

Roundcube can already use inline images. There are 3 ways to get images into HTML images.

1) as you said already, link to a remotely hosted image
2) simply drag 'n drop the image you want into the editor where you want it
3) upload the image to your message as an attachment and then select it from the "image list" option on the insert/edit images dialog
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦