We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Uploader
class ImageUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick storage :file process convert: 'jpg' end
Form
... <%= form.text_field :title %> <%= form.file_field :image %> <%= form.hidden_field :image_cache %> ...
Model
class Project < ApplicationRecord mount_uploader :image, ImageUploader validates_presence_of :title validates_integrity_of :image validates_processing_of :image end
Image is converted to jpg and saved as image.jpg
Image is converted to jpg and saved as image.png (with original file name)
Ruby version: 2.4.2 Rails version: 5.1.4 CarrierWave version: 1.2.1
The text was updated successfully, but these errors were encountered:
[BREAKING CHANGE] Use the resulting file extension on changing format…
3ab4e97
… by :convert Fixes #2125, Fixes #2126, Fixes #2254
4e50f1e
c4bb30b
No branches or pull requests
Steps to reproduce
Uploader
Form
Model
Expected behavior
Image is converted to jpg and saved as image.jpg
Actual behavior
Image is converted to jpg and saved as image.png (with original file name)
System configuration
Ruby version: 2.4.2
Rails version: 5.1.4
CarrierWave version: 1.2.1
The text was updated successfully, but these errors were encountered: