Skip to content

Instantly share code, notes, and snippets.

View abepark01's full-sized avatar

Abe abepark01

  • Los Angeles, CA
View GitHub Profile
@abepark01
abepark01 / article_image_uploader.rb
Created December 30, 2017 01:43 — forked from jcsrb/article_image_uploader.rb
CarrierWave extension fix_exif_rotation, strip, quality, resize_to_fill_if_larger
class ArticleImageUploader < ImageUploader
process :fix_exif_rotation
process :strip
process :convert => 'jpg'
process :quality => 85 # Percentage from 0 - 100
version :gallery_thumb do
process :resize_to_fill => Settings.images.article_images.processing.gallery_thumb #44x44
end