Answer the question
In order to leave comments, you need to log in
CarierWave - if you set the global process, will the version get the processed file or will it be created from the original?
There are several applouders, all of them are inherited from one base:
class AlbumPhotoUploader < ImageUploader
# .... code
version (:small) {process resize_to_fill: [200, 130]}
end
class PhotoUploader < ImageUploader
# .... code
version (:small) {process resize_to_fill: [200, 130]}
end
class ImageUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
# .... code
process :quality => 75
end
Answer the question
In order to leave comments, you need to log in
The version will include pictures with quality 75.
First, the processes, then the versions are worked out.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question