34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# File 'app/models/pageflow/image_file.rb', line 34
def attachment_styles(attachment)
panorama_format = File.extname(attachment.original_filename) == '.png' ? :PNG : :JPG
Pageflow
.config.thumbnail_styles
.merge(
print: {geometry: '300x300>',
format: :JPG,
convert_options: '-quality 10 -interlace Plane'},
medium: {geometry: '1024x1024>',
format: :JPG,
convert_options: '-quality 70 -interlace Plane'},
large: {geometry: '1920x1920>',
format: :JPG,
convert_options: '-quality 70 -interlace Plane'},
ultra: {geometry: '3840x3840>',
format: :JPG,
convert_options: '-quality 90 -interlace Plane'},
panorama_medium: {geometry: '1024x1024^',
format: panorama_format,
convert_options: '-quality 90 -interlace Plane'},
panorama_large: {geometry: '1920x1080^',
format: panorama_format,
convert_options: '-quality 90 -interlace Plane'}
)
end
|