dweb-archive icon indicating copy to clipboard operation
dweb-archive copied to clipboard

UI minor - audio album image

Open mitra42 opened this issue 6 years ago • 2 comments

how to select the image for the album.

According to Tracey, the heuristic is complicated, with lots of edge cases, that makes it problematic to duplicate (and keep maintained).

Solution...

  • Tracey to add a service e.g. services/imgurl/foo or services/img/foo?output=name` that returns the name of the file, rather than the actual image
  • Gateway to retrieve this name, then check the file metadata.
  • For OK files, the image is added to the dweb, and its url's returned in a metadata field
  • For Non-OK files, the services/img/foo?scale=2 (syntax TBD) call is used to get a larger file which is added to the Dweb and urls' returned.

Non-OK means any of: file/private is set - so only accessable to priviliged users file/format us unusable e.g. BMP, TIF, PDF etc file/size is too large (above a TBD amount)

All the details here are fuzzy, but give the idea of how to solve the problem.

mitra42 avatar Jun 08 '18 17:06 mitra42

Example of fails: https://dweb.me/arc/archive.org/details/gd73-06-10.sbd.hollister.174.sbeok.shnf?

mitra42 avatar Jul 23 '18 21:07 mitra42

This is still broken - there seems no logical way to look at https://dweb.me/arc/archive.org/metadata/gd73-06-10.sbd.hollister.174.sbeok.shnf and figure out what the image should be for the album.

Asked Arthur on Slack ... but I think it should be a metadata field.

mitra42 avatar May 21 '19 09:05 mitra42