mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Further compressed the landing page image to make it really light.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class LandingPageImage < ActiveRecord::Base
|
||||
attr_accessible :photo
|
||||
has_attached_file :photo, styles: { max_common_res: ["1920x1080#", :jpg] },
|
||||
:convert_options => { max_common_res: "-quality 75" }
|
||||
:convert_options => { max_common_res: "-quality 25" }
|
||||
|
||||
validates_attachment_presence :photo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user