Skip to content

Commit

Permalink
Image collection missing thumbnails for tif files (#1179)
Browse files Browse the repository at this point in the history
- Added configuration for active storage to allow tifs to have a thumbnail
  • Loading branch information
ConnorSheremeta authored Jun 25, 2019
1 parent 937714e commit eb98109
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions config/initializers/active_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit eb98109

Please sign in to comment.