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

Create Thumbnail Version (Carrierwave)? #132

Open
kylerenke opened this Issue Oct 9, 2013 · 1 comment

Comments

Projects
None yet
2 participants

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]
  end

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment