Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to crop the thumbnail with a customized height and width how to do it #16

Closed
etika opened this issue Nov 13, 2014 · 3 comments
Closed

Comments

@etika
Copy link

etika commented Nov 13, 2014

version :thumb do
# process :resize_to_fill => [1000, 400]
process thumbnail: [{format: 'png', quality: 10, size: 1000, strip: false, logger: Rails.logger}]
this is the code in video_uploader ,on uncommenting resize to fill gives undefined method error
Please tell how to customize my thumbnail to particular height and width using this gem.
Thanks
Etika

@argent-smith
Copy link
Contributor

Could you please make a gist with an error message?

@etika
Copy link
Author

etika commented Nov 18, 2014

Currently By thumbnail size is 1280(width) X 960(height) i want this thumbnail which has been generated of size 1200(width) X 320(height) .

@dkoropenko
Copy link
Contributor

dkoropenko commented Feb 6, 2019

Hello

For resize thumbnail install MiniMagic and add version:

    class VideoUploader < CarrierWave::Uploader::Base
       include CarrierWave::MiniMagick
    
       ...
    
       version :small_thumb, from_version: :thumb do
         process resize_to_fill: [20, 200]
       end
 
    end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants