I need the ability to put the processed image’s dimensions.
I have in my ImageUploader class:
version :post do
process :resize_to_fit => [200, nil]
end
Is there a way that I could get the image’s dimensions similar to this?
height = @picture.image_height(:post)
You can adjust and use the method described here: http://code.dblock.org/carrierwave-saving-best-image-geometry
It adds a process then call Magick’s method to fetch image geometry.
Code: