{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2332","repository_url":"https://api.github.com/repos/thoughtbot/paperclip","labels_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2332/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2332/comments","events_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2332/events","html_url":"https://github.com/thoughtbot/paperclip/pull/2332","id":186222756,"number":2332,"title":"fix ImageMagick command in Windows","user":{"login":"aboutqx","id":4919094,"avatar_url":"https://avatars.githubusercontent.com/u/4919094?v=3","gravatar_id":"","url":"https://api.github.com/users/aboutqx","html_url":"https://github.com/aboutqx","followers_url":"https://api.github.com/users/aboutqx/followers","following_url":"https://api.github.com/users/aboutqx/following{/other_user}","gists_url":"https://api.github.com/users/aboutqx/gists{/gist_id}","starred_url":"https://api.github.com/users/aboutqx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboutqx/subscriptions","organizations_url":"https://api.github.com/users/aboutqx/orgs","repos_url":"https://api.github.com/users/aboutqx/repos","events_url":"https://api.github.com/users/aboutqx/events{/privacy}","received_events_url":"https://api.github.com/users/aboutqx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-31T07:43:32Z","updated_at":"2016-11-04T02:06:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thoughtbot/paperclip/pulls/2332","html_url":"https://github.com/thoughtbot/paperclip/pull/2332","diff_url":"https://github.com/thoughtbot/paperclip/pull/2332.diff","patch_url":"https://github.com/thoughtbot/paperclip/pull/2332.patch"},"body":"Add OS detect to choose right command.\r\n\r\nIt seems that paperclip use identify as exe in windows,\r\n\r\n`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`.,\r\n\r\nwhile only `magick identify` command  works in windows,and there in no identify.exe in windows in the latest version ImageMagic.\r\nAnd only `Paperclip.options[:command_path]` is used, the `Paperclip.options[:image_magick_path]` seems ignored.\r\n\r\nAbout imageMagick in windows can be found [there](http://www.imagemagick.org/script/binary-releases.php).\r\n"},"comment":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/comments/258327111","html_url":"https://github.com/thoughtbot/paperclip/pull/2332#issuecomment-258327111","issue_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2332","id":258327111,"user":{"login":"aboutqx","id":4919094,"avatar_url":"https://avatars.githubusercontent.com/u/4919094?v=3","gravatar_id":"","url":"https://api.github.com/users/aboutqx","html_url":"https://github.com/aboutqx","followers_url":"https://api.github.com/users/aboutqx/followers","following_url":"https://api.github.com/users/aboutqx/following{/other_user}","gists_url":"https://api.github.com/users/aboutqx/gists{/gist_id}","starred_url":"https://api.github.com/users/aboutqx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboutqx/subscriptions","organizations_url":"https://api.github.com/users/aboutqx/orgs","repos_url":"https://api.github.com/users/aboutqx/repos","events_url":"https://api.github.com/users/aboutqx/events{/privacy}","received_events_url":"https://api.github.com/users/aboutqx/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T02:06:09Z","updated_at":"2016-11-04T02:06:09Z","body":"Maybe another way is make the `option is_windows` default false ,and add some tip about changing it in windows while referencing  the doc of ImageMagick.\r\n\r\nRight now the error information didn't cover it,just return `not idetentified`,which is not clear. "}}
{"actor":{"display_login":"aboutqx"}}