Is there a way to load an image from url without js and allow me to get the pixels of the costume
you cant get pixels of costume with that
ik
i wonder if its possible to make a glitch project report the dimensions and stream of pixels
Well, you can probably make a cors proxy that will not result in the error.
i dont think so. svg images dont have a problem maybe we can convert it into an svg first somehow
not possible unless there is a svg version already on the website
thats not true. you can convert a file to svg
Yes, but you wouldn't have any of the advantages of SVG.
i would be able to stamp it then get the pixels tho
Yeah, I guess. But I must warn you: Converting Raster images to SVG will ballon the file size, from my experience.
wym. do you got any other ideas to be able to get the pixels of https://image.pollinations.ai/prompt/a%20dog
can someone please help
cst_load extension must be modified to use the image.crossOrigin="annonymous"
.
JS version of the cst_load
You can also get the encoded image data with
But to get "raw" pixels array further processing is required...
svg is infinitely scalable. pngs and svgs are completely different image file formats (because one can be infinitely scaled up while the other cannot) so converting, for example, a png, a pixel-based image format, to an SVG, a vector-based image format will not give you any advantages whatsoever. plus the file size will be awfully huge.
how can i do it without js