Wrote a little tool a while ago to convert SVGs to...
# feed
a
Wrote a little tool a while ago to convert SVGs to Compose Image Vectors Today I ported it to Compose Web (was written in HTML + Jquery before and it was a nightmare to maintain) Thought you folks would find it interesting ๐Ÿ™‚ https://composables.com/svg-to-compose
๐Ÿ‘ 9
๐Ÿ‘ 5
๐Ÿ‘€ 12
๐Ÿ‘๐Ÿพ 1
l
Maybe just a question, would it be possible to write it to vector drawable as well? As for large vectors kotlin fails to compile the files with long code (example is this world map )
a
thanks for sharing @Lukas Anda. I'll have a look today
Would love to support vector drawable btw. easier to iterate now that's the whole thing in kotlin but no promises when it would be ready
K 1
f
Iโ€™ve noticed the scrollbar is gone when I mouse-over the SVG-to-Compose element ๐Ÿ˜›
a
weird. what browser + os is that? do u use a mouse or trackpad?
It might be the browser doing something than compose or my site related
f
MacBook Pro (M2), MacOS, Chrome browser, trackpad on laptop.
I've noticed before that Compose WASM apps hide the Scrollbar.
a
that doesn't happen here. might be worth opening a bug about it if you've seen it in multiple apps
๐Ÿ‘€ 1
g
Would be nice to have an option see output on UI, without need to download
a
@gildor how come? the output should the 1-to-1 of the svg. currently working on improving the algo
g
Ah sorry, I meant resulting code, not preview of the file, just to copy-paste code without need to deal with files
a
that makes sense. can you clarify the use case? ie would copy to clipboard work?
g
yep
But I also would probably just like to see result before copying, maybe it's too large, and I wouldn't bother to add it in code at all ๐Ÿ˜„
a
thanks for clarifying. let me see what i can do
๐Ÿ™ 1