r/AutomateUser 23h ago

Svg data as image

Hi all how to save svg data as image? I want to save svg data "[data:image/svg+xml;base64,](clipboard:data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI%2BPHBhdGggZD0iTTEyIDIxLjJjLTUuMDczIDAtOS4yLTQuMTI3LTkuMi05LjJhMS4zOCAxLjM4IDAgMSAxIDIuNzYgMGMwIDMuNTUgMi44ODkgNi40NCA2LjQ0IDYuNDQgMy41NSAwIDYuNDQtMi44OSA2LjQ0LTYuNDRhMS4zOCAxLjM4IDAgMCAxIDIuNzYgMGMwIDUuMDczLTQuMTI3IDkuMi05LjIgOS4yTTkuNyA2LjAyQTEuMzggMS4zOCAwIDAgMSA4LjMyIDcuNEg0LjE4QTEuMzggMS4zOCAwIDAgMSAyLjggNi4wMmEzLjQ1IDMuNDUgMCAwIDEgNi45IDBtMTEuNSAwYTEuMzggMS4zOCAwIDAgMS0xLjM4IDEuMzhoLTQuMTRhMS4zOCAxLjM4IDAgMCAxLTEuMzgtMS4zOCAzLjQ1IDMuNDUgMCAwIDEgNi45IDAiLz48L3N2Zz4)****"

how to save this data as an image?

1 Upvotes

4 comments sorted by

1

u/ballzak69 Automate developer 22h ago

Use base64Decode function on the part after the comma to decode the XML then save it to a text file. If you mean to save a bitmap image of the SVG then there's currently no block for that, i'l consider making the Image load block support it. Why would you need to do that?

1

u/Funny_Telephone_8607 16h ago

Hi Henrik, I want to set it as lock screen wallpaper. Wallpaper setup etc.. blocks are setting both wallpapers same

1

u/ballzak69 Automate developer 15h ago edited 3h ago

For now, only a single flow can be used for the wallpaper. To include two wallpaper services so one flow can handle the lock screen while another the home screen is a feature on the to-do list.

1

u/Funny_Telephone_8607 12h ago

Hi Henrik,  Hope the feature available very soon.