Fix Dragonfly support on Windows

Ben Knowles committed Sep 17, 2015
commit e21aca732c3a671ca2eba258a4d5484f1cfc5ed3
Showing 1 changed file with 6 additions and 2 deletions
locomotive/wagon/misc/dragonfly.rb b/lib/locomotive/wagon/misc/dragonfly.rb +6 -2
@@ @@ -54,7 +54,11 @@ module Locomotive
## configure it ##
::Dragonfly[:images].configure do |c|
- convert = `which convert`.strip.presence || '/usr/bin/env convert'
+ if Gem.win_platform?
+ convert = `where convert`.strip.presence || 'C:/ImageMagick/convert.exe'
+ else
+ convert = `which convert`.strip.presence || '/usr/bin/env convert'
+ end
c.convert_command = convert
c.identify_command = convert
@@ @@ -75,4 +79,4 @@ module Locomotive
end
end
- end
\ No newline at end of file
+ end