문제

Other posts claim that paperclip reduces dpi to 72 when processing, but this is not true. Out of the box, it leaves dpi untouched. I need 300dpi originals in print quality, but the thumbs should be 72dpi for monitor. How can I do this (whilst processing the upload)?

도움이 되었습니까?

해결책

has_attached_file :uploadedPhoto, 
                  :styles          => {:portrait => "400x", :icon => "32x32#"},
                  :convert_options => {:portrait => '-strip -quality 60', :icon => '-strip -quality 60' }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top