BiologicalRecordsCentre / iRecord

Repository to store and track enhancements, issues and tasks regarding the iRecord website.
http://irecord.org.uk
2 stars 1 forks source link

Correct display of photos from Coreo #893

Open johnvanbreda opened 4 years ago

johnvanbreda commented 4 years ago

Where photos are attached to records imported from Coreo a link is stored in the occurrence_media.path field, e.g.: https://coreo.imgix.net/27/1558622703063_sighting_photo_1.jpg. These images display as a generic icon in grids and on the old verification media tab.

The grid, media and record details tab code should make use of knowledge that links under https://coreo.imgix.net are images to correctly generate thumbnails in the grids and on the media tab. Note that the URL can have w(idth) and h(eight) parameters in pixels for resizing.

kitenetter commented 1 year ago

Just realised that this affects the new photo verification page, which includes Mammal Mapper records but does not display the photos. The icons are shown, but they cannot be opened by a normal click (although they can by a right-click).