TomByrne / Flash2Svg

Export Animated SVG files staight from Flash Pro
MIT License
337 stars 52 forks source link

Export base64 images #61

Open spanakorizo opened 2 years ago

spanakorizo commented 2 years ago

Mac animate 21.0.2 i do not see any option to export the images embedded base64. I had to install the plugin manually. It works apart of an error if you apply mask.

spanakorizo commented 2 years ago

looking at the code in SVG.jsfl (inside extensible folder) i believe the part that is responsible to export the images to .png and write the svg paths is this :

_getBitmapItem:function(item){
            return this._getAssetUri(item, this.toDataUrl, "img", "png");
        },

how to modify this to encode base64 instead of giving the uri of /img folder inside the exported svg??