I am using carrierwave and mini magick. In the uploader i have

process resize_to_fit: [300,200] 

Now, all the uploaded images were processed, but I now i need the original version. Is there a way to write a migration and restore the image version?

有帮助吗?

解决方案

I'm afraid not. You could resize the resized images, but you will loose quality and that's probably not what you are after.

Update: after some digging, I found this (look at the second answer). So depending on how you save your images, you might still have the originals. In which case you can use this technique to recreate your images from the original.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top