Woyken / pixelplanet.fun-OverlayPicture

pixelplanet.fun add your overlay picture to pixelplanet
MIT License
17 stars 13 forks source link

Using custom server for file hosting, some options disappear #88

Closed Junifil744 closed 6 months ago

Junifil744 commented 6 months ago

Basically, using a discord link for file hosting and using on the overlay works fine but using my own server, to which ive put a file on (https://middlemouse.click/pixelqbc/template.png if you need it) Simply makes the Smol Pixels, Convert colors and Auto color buttons disappear. Might be a bug or something related to my image but im just wondering in general The overlay still works fine though, those buttons are just missing

Normal file / link image

Link from my server image

Woyken commented 6 months ago

This usually happens due to CORS limitations. If server that's hosting the image specifies that it doesn't allow other websites to access it's content, then we have very limited access, I'll just display the image directly and scripts cannot read the image's contents. So there is no way of knowing what is being displayed from the script side, no modifications possible. It's just browser security limitation.

Junifil744 commented 6 months ago

Ah I get it, yeah that would make sense. Alright thanks!