This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Clint Andrew Hall
Posted Jan 31 - Read on Facebook

So I'd like to do something a bit nuts: single-page Framer prototypes.

I've got a basic script that replaces all <script> and stylesheets with their file contents, and it works great for simple prototypes. What I'd like to do next is replace image URLs of imported layers with base64 encoded images... but I'm seeing some pretty inflexible logic around loading of images. Ideally, I'd just load the base64 representation here [1], but all image urls are prepended with a path [2] and, optionally, a cache-buster [3]. I can work around those with a simple indexOf check for 'data:image'... but it's getting the base64 data into the json I'm wondering about, as well.

Any good ideas?