Skip to main content
Known Participant
October 19, 2023
Question

Changing the image to base64 code

  • October 19, 2023
  • 2 replies
  • 742 views

Hi, can someone tell me how to change image.jpg to base64 code in HTML5 canvas file? Animate generates JS with images in this form: {src:"img1.jpg", id:"img1"},{src:"img2.jpg", id:"img2"}, etc.
Is there any way I can change to base64 code?
This is an HTML5 animated banner.

This topic has been closed for replies.

2 replies

New Participant
December 3, 2023

Hello, how to include those scripts? I am really struggling when i am exporting svgs with an extension and all the images are included in a /img path. Then i manually have to edit the svg file and add the converted base 64 string (through https://www.base64-image.de/) for each image! There is a line in the javascript files of the extension 

var bitmapURI=this._getBitmapItem(item);

that will generate the name of the file but i need to access the source binary format. from where is this coming?

kglad
Adobe Expert
December 3, 2023

@Asa246722338dy7 

 

use the include tab of the actions panel.

JoãoCésar17023019
Adobe Expert
October 19, 2023

Hi.

 

Do you want Animate to publish the assets as base64 code?

New Participant
December 3, 2023

Hello this is exactly what i need. do you have any clue how to get the binary format of the image?