humlab-sead / sead_browser_client

Online browser client for the SEAD database
2 stars 0 forks source link

Support for images #189

Open johanvonboer opened 2 years ago

johanvonboer commented 2 years ago

The dendro people wish to have support for showing images in the system. These can be of tree rings, buildings, dig sites, etc. They can also be rather large (~40MB) in their maximum resolution, which means that:

  1. It's probably a bad idea to store them as text in a base64-format, although we could try it just for the heck of it - perhaps it could work better than expected and it would be nice to have it all in one database.
  2. We probably need to have some sort of system for storing multiple downscaled versions. This is probably best done during ingestion of the data. I'm thinking it would be good to have 3 different sizes, small (100px) - suitable for thumbnail/gallery views, medium (1000px) - suitable for zoomed in/fullscreen view, and full which is the raw image in original resolution, perhaps best offered as a download.