#Client-only drag-n-drop tile viewer

3 messages · Page 1 of 1 (latest)

dire sparrow
#

AI generated tiles look amazing and with the right compression they can make some very lightweight backgrounds.

Viewers are available online, but the more I think about it.. it should be possible to have a server-less single tile viewer with drag-n-drop support that you can just save on your desktop?

At what point would we need a server?

dire sparrow
#

Oh yeah that was a very simple project! The tricky part was sorting out how to get the file src.
I eventually found a help doc with steps that include previewing the drag n drop file upload and that gave me a good example to work with.

gleaming blazeBOT
#

@dire sparrow

Bogard Uploaded Some Code

Ah I had to upgrade it to support dragging the 'Open in Browser' link to the window would fetch the URL inside because Discord image previews are often resized. 😊
Live example: https://jsbin.com/sefuhebake/edit?output

Uploaded these files to a Gist