2017-03-17 24 views

回答

0

下面的代碼得到它的工作

class AvatarUploader < CarrierWave::Uploader::Base 
    include CarrierWave::MiniMagick  
    process :auto_orient 

    def auto_orient 
    manipulate! do |image| 
     image.tap(&:auto_orient) 
    end 
    end 

end 

旁註:auto_orient不追溯工作,圖像需要重新上載他們有正確的方向。

相關問題