diff --git a/CHANGELOG.md b/CHANGELOG.md index a53dc0eb0..086cfa165 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and releases in Jupiter project adheres to [Semantic Versioning](http://semver.o ### Added - Ruby 2.5 to travis ci testing matrix [PR#1040](https://github.com/ualbertalib/jupiter/pull/1040) +- Added configuration for active storage to allow tifs to have a thumbnail [#991](https://github.com/ualbertalib/jupiter/issues/991) - Added missing contoller tests [#865](https://github.com/ualbertalib/jupiter/issues/865) ### Changed diff --git a/config/initializers/active_storage.rb b/config/initializers/active_storage.rb index 861bc4cc5..b57249b31 100644 --- a/config/initializers/active_storage.rb +++ b/config/initializers/active_storage.rb @@ -11,3 +11,7 @@ def self.find_signed(id) end end end + +# Allow tiff as a variable content type and inline to make them available as thumbnails, both lines can likely be removed after upgrading to Rails 6. +Rails.application.config.active_storage.variable_content_types.push 'image/tiff' +Rails.application.config.active_storage.content_types_allowed_inline.push 'image/tiff'