I have a rails 3 application which uses the CarrierWave gem. Until now, I have uploaded my pictures in 48*48 and 100*100 but now I would like to store them in 200*200.
Is there a way to resize my already uploaded images ?
Yes, you have to add you new version to the image uploader...
version :thumb do
process :resize_to_fill => [200,200]
end
...and then recreate them:
User.all.each do |user|
user.avatar.recreate_versions!
end
See carrierwave's readme.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With