Allow BMP images to be transformed
authorTom Hughes <tom@compton.nu>
Mon, 15 Jul 2019 23:24:37 +0000 (00:24 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 15 Jul 2019 23:24:37 +0000 (00:24 +0100)
https://github.com/rails/rails/issues/35953
https://github.com/rails/rails/pull/36051

config/initializers/active_storage.rb

index cf53f79..a246e62 100644 (file)
@@ -1,4 +1,5 @@
 Rails.application.config.active_storage.queue = :storage
+Rails.application.config.active_storage.variable_content_types << "image/bmp"
 
 Rails.configuration.after_initialize do
   require "active_storage/service/s3_service"