Question

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?

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top