Islandora-Devops / islandora-starter-site

A Drupal site demonstrating Islandora features. Use it as a starting point for customization.
https://sandbox.islandora.ca
GNU General Public License v2.0
3 stars 17 forks source link

Change the thumbnail display for image media to not use image styles. #126

Closed rosiel closed 7 months ago

rosiel commented 8 months ago

This is a "quick fix" regarding a discussion in Slack regarding broken thumbnails caused by Drupal trying to create "Image Style" derivatives in the fedora flysystem when browsing as anonymous.

This "fix" shows thumbnail images at their original size. A paired PR resizes the Demo objects' thumbnails to be the same height (220x220) as the "medium" image style removed here.

If you are using the starter site, be aware that you should make your thumbnails "thumbnail sized". (if you use Fedora at all. Or, see below)

A better fix is for the Fedora Flysystem adapter to declare Fedora as non-writable when browsing as anonymous. Then image style derivatives should be created in public://. See issue: https://github.com/Islandora/documentation/issues/2282

This is a quick fix in anticipation of someone with the capabilities of tackling the solution above.