Skip to content

Commit

Permalink
Merge pull request #635 from CDLUC3/bug/dragonfly-logos
Browse files Browse the repository at this point in the history
Fix for issue uploading Logos
  • Loading branch information
briri committed Jul 22, 2024
2 parents 25237b2 + c0e0754 commit b3bcc25
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bin/convert
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# Get Dragonfly gem to use GraphicsMagick instead of ImageMagick
/usr/bin/gm convert "$@"
4 changes: 4 additions & 0 deletions bin/identify
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# Get Dragonfly gem to use GraphicsMagick instead of ImageMagick
/usr/bin/gm identify "$@"
4 changes: 3 additions & 1 deletion config/initializers/dragonfly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

# Configure
Dragonfly.app.configure do
plugin :imagemagick
plugin :imagemagick,
convert_command: '/dmp/apps/dmptool/current/bin/convert',
identify_command: '/dmp/apps/dmptool/current/bin/identify'

secret Rails.configuration.x.dmproadmap.dragonfly_secret

Expand Down

0 comments on commit b3bcc25

Please sign in to comment.