GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Is it possible to create a thumbnail version when uploading directly to s3_direct_upload? Perhaps integrating carrierwave somehow? I'm not quite sure how I would do this, however. Any ideas on how to do something like this?
version :thumb do
process resize_to_fill: [200, 200]
There's a good tutorial for post-processing via Paperclip which is similar to Carrierwave, you might be able to adapt the info. I'm currently using the Paperclip method and I'm fairly happy with it.
Files are uploaded via s3_direct_upload then the callback supplies the URL to the model which then checks if the file is an image and requires resizing. If so the Paperclip downloads the original, produces the thumbnails etc and then save them back to S3.