How to retrieve image dimensions when uploading to Cloudinary using CarrierWave?




  • Avatar
    Nicholas Friend

    doesn't work.

    NoMethodError: undefined method `[]' for nil:NilClass

  • Avatar
    Itay Taragano

    Hi Nicholas,

    We'll need some more information about this.

    You're more than welcomed to  open a ticket and share your code with us, so we'll be able to further assist with this issue.

  • Avatar
    Patrick Kozma


    i would love to be able to use this solution,
    but none of the two code examples work for us in our Rails 3.2 project.

    could i ask for any help?
    i am happy to share code, too

  • Avatar
    Itay Taragano

    Here's a basic sample project demonstrating this (on Rails 4):

Please sign in to leave a comment.