ordinals / ord

👁‍🗨 Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.82k stars 1.36k forks source link

Make supported but un-previewable content types nicer #1493

Open casey opened 1 year ago

casey commented 1 year ago

I opened #1492 to support STL files, which is a 3D model file format. I wanted to add it, to encourage people to experiment with making STL inscriptions. But, since it isn't a native browser format, the ord block explorer cannot easily render a good preview. Because of this, inscriptions with content type model/stl get Media::Unknown, which has a blank preview.

It would be nice to be able to add formats like STL quickly, without needing to add a custom renderer, but still have something other than a blank image.

I'm thinking a preview which renders the whole thing as a square of hex. We could then give STL Media::Blob or whatever.

batcavekid commented 1 year ago

Not inclined to bump it off the main feed? ie. filter unsupported content types, could be to another page.

I guess there's advantage in people seeing the experiment and exploring the raw content though.

More broadly, quite many requests for various types of filters from the people. Presented without comment.

casey commented 1 year ago

The main feed doesn't do db reads for any inscriptions, which would be required to see what to bump.