{"action":"created","issue":{"url":"https://api.github.com/repos/janfoeh/paperclip-optimizer/issues/22","labels_url":"https://api.github.com/repos/janfoeh/paperclip-optimizer/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/janfoeh/paperclip-optimizer/issues/22/comments","events_url":"https://api.github.com/repos/janfoeh/paperclip-optimizer/issues/22/events","html_url":"https://github.com/janfoeh/paperclip-optimizer/issues/22","id":105462744,"number":22,"title":"ImageOptim::BinResolver::Error when creating new attachment.","user":{"login":"danielbonnell","id":8513877,"avatar_url":"https://avatars.githubusercontent.com/u/8513877?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbonnell","html_url":"https://github.com/danielbonnell","followers_url":"https://api.github.com/users/danielbonnell/followers","following_url":"https://api.github.com/users/danielbonnell/following{/other_user}","gists_url":"https://api.github.com/users/danielbonnell/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbonnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbonnell/subscriptions","organizations_url":"https://api.github.com/users/danielbonnell/orgs","repos_url":"https://api.github.com/users/danielbonnell/repos","events_url":"https://api.github.com/users/danielbonnell/events{/privacy}","received_events_url":"https://api.github.com/users/danielbonnell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-08T20:28:39Z","updated_at":"2015-09-08T20:37:45Z","closed_at":null,"body":"Hi, I just installed version 2.0.0 and I'm encountering the following bug. \r\n\r\n    ImageOptim::BinResolver::Error - Bin resolving errors:\r\n    pngout worker: `pngout` not found; please provide proper binary or disable this worker (--no-pngout argument or `:pngout => false` through options)\r\n    jpegrecompress worker: `jpeg-recompress` not found; please provide proper binary or disable this worker (--no-jpegrecompress argument or `:jpegrecompress => false` through options)\r\n    svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options):\r\n\r\nI'm not sure if its a bug or if my configuration is wrong. In `application.rb` I have `config.assets.image_optim = false`.\r\nIn my initializer I have:\r\n\r\n    Paperclip::PaperclipOptimizer.default_options = {\r\n        skip_missing_workers: true,\r\n        advpng: false,\r\n        gifsicle: false,\r\n        jhead: false,\r\n        jpegoptim: false,\r\n        jpegrecompress: true,\r\n        jpegtran: false,\r\n        optipng: false,\r\n        pngcrush: false,\r\n        pngout: false,\r\n        pngquant: true,\r\n        svgo: false\r\n    }\r\n\r\nAnd in my model I have:\r\n```has_attached_file :image, styles: { large: \"600x600>\", medium: \"300x300>\", thumb: \"100x100>\" }, default_url: \"\", processors: [:thumbnail, :paperclip_optimizer]```"},"comment":{"url":"https://api.github.com/repos/janfoeh/paperclip-optimizer/issues/comments/138692191","html_url":"https://github.com/janfoeh/paperclip-optimizer/issues/22#issuecomment-138692191","issue_url":"https://api.github.com/repos/janfoeh/paperclip-optimizer/issues/22","id":138692191,"user":{"login":"danielbonnell","id":8513877,"avatar_url":"https://avatars.githubusercontent.com/u/8513877?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbonnell","html_url":"https://github.com/danielbonnell","followers_url":"https://api.github.com/users/danielbonnell/followers","following_url":"https://api.github.com/users/danielbonnell/following{/other_user}","gists_url":"https://api.github.com/users/danielbonnell/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbonnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbonnell/subscriptions","organizations_url":"https://api.github.com/users/danielbonnell/orgs","repos_url":"https://api.github.com/users/danielbonnell/repos","events_url":"https://api.github.com/users/danielbonnell/events{/privacy}","received_events_url":"https://api.github.com/users/danielbonnell/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T20:37:45Z","updated_at":"2015-09-08T20:37:45Z","body":"Hi janfoeh,\r\n\r\nI just realized my mistake and it was a real obvious one at that. In my initializer I had uncommented both `default_options` hashes and forgot to merge them into a single options hash. So my second hash was overriding the first. I merged them and the problem went away.\r\n\r\nThanks!"}}