diff --git a/preview-image/notes.txt b/preview-image/notes.txt index 7151c63..1fb8152 100644 --- a/preview-image/notes.txt +++ b/preview-image/notes.txt @@ -1,2 +1,12 @@ This will store the base64 encoded version of every input image in memory until it is removed from history -May need some kind of limit on this... \ No newline at end of file +May need some kind of limit on this... + +Requires an update to app.js to allow rendering of b64 images + +around line 113ish (in function addDrawBackgroundHandler) replace: + +img.src = "/view/" + src; + +with + +img.src = src.startsWith("data:image") ? src : "/view/" + src;