]> git.openstreetmap.org Git - rails.git/commitdiff
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 cf53f7918051d5f842d3921961a3f0f1406bfe39..a246e62ac16f6abd61375477a4ba7e201f787f4c 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"