]> cat aescling's git repositories - mastodon.git/commitdiff
Change how convert options are escaped
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 12 Oct 2016 12:39:54 +0000 (14:39 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 12 Oct 2016 12:39:54 +0000 (14:39 +0200)
app/models/media_attachment.rb

index 93c915b018c04cba16199509ac39fc4b62a9550c..567813d5381a175a2182b1ec6c8b5e512de2746e 100644 (file)
@@ -51,7 +51,7 @@ private
         small: {
           convert_options: {
             output: {
-              vf: 'scale="min(510\, iw):min(680\, ih)":force_original_aspect_ratio=decrease'
+              vf: 'scale=\'min(510\, iw):min(680\, ih)\':force_original_aspect_ratio=decrease'
             }
           },
           format: 'png',