- PAPERCLIP_FILESYSTEM_DEFAULT_OPTIONS =
{
storage: :filesystem,
path: ':pageflow_filesystem_root/:class/:attachment/:id_partition/:style/:filename',
url: 'not_uploaded_yet',
validate_media_type: false
}.freeze
- PAPERCLIP_S3_DEFAULT_OPTIONS =
{
storage: :s3,
s3_headers: {'Cache-Control' => 'public, max-age=31536000'},
url: ':s3_alias_url',
path: ':pageflow_s3_root/:class_basename/:attachment/' \
':id_partition/:pageflow_attachments_version:style/:filename',
validate_media_type: false,
keep_old_files: true
}.freeze
- THUMBNAIL_STYLES =
{
thumbnail: {
geometry: '100x100#',
format: :JPG
},
thumbnail_large: {
geometry: '560x315#',
format: :JPG
},
navigation_thumbnail_small: {
geometry: '85x47#',
format: :JPG
},
navigation_thumbnail_large: {
geometry: '170x95#',
format: :JPG
},
thumbnail_overview_desktop: {
geometry: '230x72#',
format: :JPG
},
thumbnail_overview_mobile: {
geometry: '200x112#',
format: :JPG
},
link_thumbnail: {
geometry: '192x108#',
format: :JPG
},
link_thumbnail_large: {
geometry: '394x226#',
format: :JPG
}
}.freeze
- CSS_RENDERED_THUMBNAIL_STYLES =
[
:thumbnail_large,
:navigation_thumbnail_large,
:link_thumbnail,
:link_thumbnail_large
].freeze