Skip to main content
Dhal_Naka
Inspiring
December 4, 2019
Question

Is it possible to convert and image to base64 from after effects ?

  • December 4, 2019
  • 1 reply
  • 1032 views

I'm preparing an script to convert image based animations made in AE to SVG format. (I don't know how this doesn't exist yet) I have a first version, but I need to convert the images to base64. Right now I do it by hand using a web, copying the data and pasting it, but it would be much better if I could do it straight from AE.

Does someone know a wayto achieve this?

 

Cheers!

This topic has been closed for replies.

1 reply

Mylenium
Legend
December 4, 2019

Scripts usually cannot access binary data. Of course you could write an elaborate parser and converter, but preferably as a native API plug-in for apparent reasons. That said, Base64 encoding files can inflate SVGs to the point of them being unusable for actual web work, so the answer to your question how it doesn't exist yet is likely that it's not worth the trouble. Personally I really can't see what the worth of a file would be where every frame is just such a chunky bit of pixel data when you can just link external PNGs, JPEGs or whatever and load them at runtime in a much more controllable fashion.

 

Mylenium

Dhal_Naka
Dhal_NakaAuthor
Inspiring
December 5, 2019

I don't get what you mean, because it's completely the opposite case. 

 

We had an banner animation to do, so we go with a GIF animation as that was what we knew at the moment. Result:
HD: 100mb, unusable
LD: 10mb (looking like crap, so much dittering)
So I started researching on SVG. Same animation and duration.Result:
HD 733kb

The power of the SVG is that you load the images ones and then is animated in real time, so it's not an image sequence