Conversation
Thank you, @aboutqx! I like this change. I know master is now failing in CI for Ruby 2.2, I'm taking care of that. That makes it hard to do what I'll ask, but do you know you can set up paperclip for Windows in Travis CI with a regression test for this? Otherwise, I can't make sure we can reliably maintain this code. Also, do you think we can abstract out this change to a single place in the codebase, and then call that configuration instead of checking three times whether we are on windows or not? Thanks so much! |
Is this a bug? If so, we should address it. Thanks! |
@@ -98,7 +98,8 @@ def self.options | |||
:swallow_stderr => true, | |||
:content_type_mappings => {}, | |||
:use_exif_orientation => true, | |||
:read_timeout => nil | |||
:read_timeout => nil, | |||
:is_windows => Gem.win_platform? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the new Ruby 1.9 hash syntax.
Put a comma after the last item of a multiline hash.
@@ -98,7 +98,8 @@ def self.options | |||
:swallow_stderr => true, | |||
:content_type_mappings => {}, | |||
:use_exif_orientation => true, | |||
:read_timeout => nil | |||
:read_timeout => nil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the new Ruby 1.9 hash syntax.
Glad for your reply.I've make it configurable by adding it to options,but I'm not familiar with Travis CI. I've made some google,it seems that Windows is not supported in Travis CI right now,and I have no ideas. |
huh, we can't test it then. We could tag those tests with
Right, thanks! Just dropped the option. |
Maybe another way is make the Right now the error information didn't cover it,just return |
Merged as 0d93e0f. Thank you! |
Add OS detect to choose right command.
It seems that paperclip use identify as exe in windows,
Command :: SET PATH=C:\file-5.03-bin\bin;%PATH% & identify -format '%wx%h,%[exif:orientation]' "C:/Users/AppData/Local/Temp/5415c7fe534a63366b48d388f204c32820161028-7156-f2nblm.jpg[0]" 2>NUL
.,while only
magick identify
command works in windows,and there in no identify.exe in windows in the latest version ImageMagic.And only
Paperclip.options[:command_path]
is used, thePaperclip.options[:image_magick_path]
seems ignored.About imageMagick in windows can be found there.