{"action":"created","issue":{"url":"https://api.github.com/repos/cloudinary/cloudinary_gem/issues/158","labels_url":"https://api.github.com/repos/cloudinary/cloudinary_gem/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/cloudinary/cloudinary_gem/issues/158/comments","events_url":"https://api.github.com/repos/cloudinary/cloudinary_gem/issues/158/events","html_url":"https://github.com/cloudinary/cloudinary_gem/issues/158","id":86676427,"number":158,"title":"undefined method `file' for #<Cloudinary::CarrierWave::CloudinaryFile","user":{"login":"harsh15","id":11785009,"avatar_url":"https://avatars.githubusercontent.com/u/11785009?v=3","gravatar_id":"","url":"https://api.github.com/users/harsh15","html_url":"https://github.com/harsh15","followers_url":"https://api.github.com/users/harsh15/followers","following_url":"https://api.github.com/users/harsh15/following{/other_user}","gists_url":"https://api.github.com/users/harsh15/gists{/gist_id}","starred_url":"https://api.github.com/users/harsh15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harsh15/subscriptions","organizations_url":"https://api.github.com/users/harsh15/orgs","repos_url":"https://api.github.com/users/harsh15/repos","events_url":"https://api.github.com/users/harsh15/events{/privacy}","received_events_url":"https://api.github.com/users/harsh15/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudinary/cloudinary_gem/labels/question","name":"question","color":"FFFF99"}],"state":"open","locked":false,"assignee":{"login":"taragano","id":4972147,"avatar_url":"https://avatars.githubusercontent.com/u/4972147?v=3","gravatar_id":"","url":"https://api.github.com/users/taragano","html_url":"https://github.com/taragano","followers_url":"https://api.github.com/users/taragano/followers","following_url":"https://api.github.com/users/taragano/following{/other_user}","gists_url":"https://api.github.com/users/taragano/gists{/gist_id}","starred_url":"https://api.github.com/users/taragano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taragano/subscriptions","organizations_url":"https://api.github.com/users/taragano/orgs","repos_url":"https://api.github.com/users/taragano/repos","events_url":"https://api.github.com/users/taragano/events{/privacy}","received_events_url":"https://api.github.com/users/taragano/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-09T17:40:12Z","updated_at":"2015-12-04T12:52:44Z","closed_at":null,"body":"When I am trying to get the dimensions using minimagick.\r\nIts giving following error\r\nundefined method `file' for #<Cloudinary::CarrierWave::CloudinaryFile\r\n\r\n```\r\n  process :store_dimensions\r\n  def store_dimensions\r\n    if(file && model)\r\n      img = ::MiniMagick::Image::read(File.binread(@file.file))\r\n      model.width = img[:width]\r\n      model.height = img[:height]\r\n    end\r\n  end\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/cloudinary/cloudinary_gem/issues/comments/161960883","html_url":"https://github.com/cloudinary/cloudinary_gem/issues/158#issuecomment-161960883","issue_url":"https://api.github.com/repos/cloudinary/cloudinary_gem/issues/158","id":161960883,"user":{"login":"taragano","id":4972147,"avatar_url":"https://avatars.githubusercontent.com/u/4972147?v=3","gravatar_id":"","url":"https://api.github.com/users/taragano","html_url":"https://github.com/taragano","followers_url":"https://api.github.com/users/taragano/followers","following_url":"https://api.github.com/users/taragano/following{/other_user}","gists_url":"https://api.github.com/users/taragano/gists{/gist_id}","starred_url":"https://api.github.com/users/taragano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taragano/subscriptions","organizations_url":"https://api.github.com/users/taragano/orgs","repos_url":"https://api.github.com/users/taragano/repos","events_url":"https://api.github.com/users/taragano/events{/privacy}","received_events_url":"https://api.github.com/users/taragano/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T12:52:44Z","updated_at":"2015-12-04T12:52:44Z","body":"I'm sorry for my response delay.\r\n\r\nIn case you still experience the same issue, I hope the following article should be helpful:\r\nhttp://support.cloudinary.com/hc/en-us/articles/202519822-How-to-retrieve-image-dimensions-when-uploading-to-Cloudinary-using-CarrierWave-"}}