enjoy_cms 0.3.1.1 → 0.3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -29
- data/enjoy_cms.gemspec +1 -4
- data/lib/enjoy/configuration.rb +0 -2
- data/lib/enjoy/models/mongoid/embedded_gallery_image.rb +0 -4
- data/lib/enjoy/models/mongoid/gallery.rb +0 -4
- data/lib/enjoy/models/mongoid/gallery_image.rb +0 -4
- data/lib/enjoy/models/mongoid/news.rb +0 -1
- data/lib/enjoy/models/mongoid/seo.rb +0 -4
- data/lib/enjoy/version.rb +1 -1
- data/lib/enjoy_cms.rb +0 -2
- data/template.rb +90 -1
- metadata +2 -45
- data/config/initializers/paperclip_optimizer.rb +0 -79
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 450bfca66a304970d20076882809a8d12036c27d
|
|
4
|
+
data.tar.gz: 497f597e35f6e549d6305aaadf9615663517e5ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8a60ec96ee9702d5f936a7d04cdff907c20931a82a9e4114076ee037cdc2872e7499a4903f865a0fbd4be5271e2480ada7cfde7806b43b44084e9194ffeaac4
|
|
7
|
+
data.tar.gz: 4392affe4373c6ce16b5a49a4b308651f900b0c907e46565cdeaa7c99535662c693c14531abe37084cbe22a8766784f1089b587389562fd134f36f37fd46c957
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
enjoy_cms (0.3.1.
|
|
4
|
+
enjoy_cms (0.3.1.2)
|
|
5
5
|
ack_rails_admin_jcrop
|
|
6
6
|
addressable
|
|
7
7
|
ckeditor
|
|
@@ -9,11 +9,8 @@ PATH
|
|
|
9
9
|
devise
|
|
10
10
|
geocoder
|
|
11
11
|
glebtv-simple_captcha
|
|
12
|
-
image_optim
|
|
13
|
-
image_optim_pack
|
|
14
12
|
jquery-rails
|
|
15
13
|
kaminari
|
|
16
|
-
paperclip-optimizer
|
|
17
14
|
rails (= 4.2.4)
|
|
18
15
|
rails_admin
|
|
19
16
|
rails_admin_mongoid_localize_field
|
|
@@ -102,10 +99,8 @@ GEM
|
|
|
102
99
|
warden (~> 1.2.3)
|
|
103
100
|
erubis (2.7.0)
|
|
104
101
|
execjs (2.6.0)
|
|
105
|
-
exifr (1.2.4)
|
|
106
102
|
font-awesome-rails (4.5.0.1)
|
|
107
103
|
railties (>= 3.2, < 5.1)
|
|
108
|
-
fspath (2.1.1)
|
|
109
104
|
geocoder (1.3.1)
|
|
110
105
|
glebtv-simple_captcha (0.6.7)
|
|
111
106
|
globalid (0.3.6)
|
|
@@ -114,17 +109,6 @@ GEM
|
|
|
114
109
|
tilt
|
|
115
110
|
htmlentities (4.3.4)
|
|
116
111
|
i18n (0.7.0)
|
|
117
|
-
image_optim (0.22.1)
|
|
118
|
-
exifr (~> 1.2, >= 1.2.2)
|
|
119
|
-
fspath (~> 2.1)
|
|
120
|
-
image_size (~> 1.3)
|
|
121
|
-
in_threads (~> 1.3)
|
|
122
|
-
progress (~> 3.0, >= 3.0.1)
|
|
123
|
-
image_optim_pack (0.2.1.20160221)
|
|
124
|
-
fspath (~> 2.1)
|
|
125
|
-
image_optim (~> 0.19)
|
|
126
|
-
image_size (1.4.2)
|
|
127
|
-
in_threads (1.3.1)
|
|
128
112
|
jquery-rails (4.1.0)
|
|
129
113
|
rails-dom-testing (~> 1.0)
|
|
130
114
|
railties (>= 4.2.0)
|
|
@@ -140,11 +124,10 @@ GEM
|
|
|
140
124
|
mail (2.6.3)
|
|
141
125
|
mime-types (>= 1.16, < 3)
|
|
142
126
|
mime-types (2.99.1)
|
|
143
|
-
mimemagic (0.3.0)
|
|
144
127
|
mini_magick (4.4.0)
|
|
145
128
|
mini_portile2 (2.0.0)
|
|
146
129
|
minitest (5.8.4)
|
|
147
|
-
mongo (2.2.
|
|
130
|
+
mongo (2.2.4)
|
|
148
131
|
bson (~> 4.0)
|
|
149
132
|
mongoid (5.1.1)
|
|
150
133
|
activemodel (~> 4.0)
|
|
@@ -156,16 +139,6 @@ GEM
|
|
|
156
139
|
mini_portile2 (~> 2.0.0.rc2)
|
|
157
140
|
origin (2.2.0)
|
|
158
141
|
orm_adapter (0.5.0)
|
|
159
|
-
paperclip (4.3.5)
|
|
160
|
-
activemodel (>= 3.2.0)
|
|
161
|
-
activesupport (>= 3.2.0)
|
|
162
|
-
cocaine (~> 0.5.5)
|
|
163
|
-
mime-types
|
|
164
|
-
mimemagic (= 0.3.0)
|
|
165
|
-
paperclip-optimizer (2.0.0)
|
|
166
|
-
image_optim (~> 0.19)
|
|
167
|
-
paperclip (>= 3.4)
|
|
168
|
-
progress (3.1.1)
|
|
169
142
|
rack (1.6.4)
|
|
170
143
|
rack-pjax (0.8.0)
|
|
171
144
|
nokogiri (~> 1.5)
|
data/enjoy_cms.gemspec
CHANGED
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
spec.add_development_dependency 'bundler'
|
|
21
21
|
spec.add_development_dependency 'rake'
|
|
22
22
|
|
|
23
|
-
spec.add_dependency 'rails', '4.2.4' #'~> 5.0.0.
|
|
23
|
+
spec.add_dependency 'rails', '4.2.4' #'~> 5.0.0.beta3'
|
|
24
24
|
|
|
25
25
|
spec.add_dependency 'jquery-rails'
|
|
26
26
|
spec.add_dependency 'simple_form'
|
|
@@ -52,7 +52,4 @@ Gem::Specification.new do |spec|
|
|
|
52
52
|
spec.add_dependency 'smart_excerpt'
|
|
53
53
|
|
|
54
54
|
spec.add_dependency 'rails_admin_sort_embedded'
|
|
55
|
-
spec.add_dependency 'image_optim'
|
|
56
|
-
spec.add_dependency 'image_optim_pack'
|
|
57
|
-
spec.add_dependency 'paperclip-optimizer'
|
|
58
55
|
end
|
data/lib/enjoy/configuration.rb
CHANGED
|
@@ -11,7 +11,6 @@ module Enjoy
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
class Configuration
|
|
14
|
-
attr_accessor :news_image_convert_options
|
|
15
14
|
attr_accessor :news_image_styles
|
|
16
15
|
attr_accessor :news_per_page
|
|
17
16
|
attr_accessor :news_excerpt
|
|
@@ -38,7 +37,6 @@ module Enjoy
|
|
|
38
37
|
attr_accessor :routes_config
|
|
39
38
|
|
|
40
39
|
def initialize
|
|
41
|
-
@news_image_convert_options = {}
|
|
42
40
|
@news_image_styles = {
|
|
43
41
|
main: '400x200>',
|
|
44
42
|
thumb: '200x100>'
|
|
@@ -9,7 +9,6 @@ module Enjoy
|
|
|
9
9
|
|
|
10
10
|
enjoy_cms_mongoid_attached_file(:image,
|
|
11
11
|
styles: lambda { |attachment| attachment.instance.image_styles },
|
|
12
|
-
convert_options: lambda { |attachment| attachment.instance.image_convert_options },
|
|
13
12
|
content_type: { content_type: ["image/jpg", "image/jpeg", "image/png"] }
|
|
14
13
|
)
|
|
15
14
|
end
|
|
@@ -18,9 +17,6 @@ module Enjoy
|
|
|
18
17
|
def image_styles
|
|
19
18
|
{}
|
|
20
19
|
end
|
|
21
|
-
def image_convert_options
|
|
22
|
-
{}
|
|
23
|
-
end
|
|
24
20
|
|
|
25
21
|
end
|
|
26
22
|
end
|
|
@@ -18,7 +18,6 @@ module Enjoy
|
|
|
18
18
|
|
|
19
19
|
enjoy_cms_mongoid_attached_file(:image,
|
|
20
20
|
styles: lambda { |attachment| attachment.instance.image_styles },
|
|
21
|
-
convert_options: lambda { |attachment| attachment.instance.image_convert_options },
|
|
22
21
|
content_type: { content_type: ["image/jpg", "image/jpeg", "image/png"] }
|
|
23
22
|
)
|
|
24
23
|
end
|
|
@@ -26,9 +25,6 @@ module Enjoy
|
|
|
26
25
|
def image_styles
|
|
27
26
|
{}
|
|
28
27
|
end
|
|
29
|
-
def image_convert_options
|
|
30
|
-
{}
|
|
31
|
-
end
|
|
32
28
|
|
|
33
29
|
end
|
|
34
30
|
end
|
|
@@ -16,7 +16,6 @@ module Enjoy
|
|
|
16
16
|
|
|
17
17
|
enjoy_cms_mongoid_attached_file(:image,
|
|
18
18
|
styles: lambda { |attachment| attachment.instance.image_styles },
|
|
19
|
-
convert_options: lambda { |attachment| attachment.instance.image_convert_options },
|
|
20
19
|
content_type: { content_type: ["image/jpg", "image/jpeg", "image/png"] }
|
|
21
20
|
)
|
|
22
21
|
end
|
|
@@ -24,9 +23,6 @@ module Enjoy
|
|
|
24
23
|
def image_styles
|
|
25
24
|
{}
|
|
26
25
|
end
|
|
27
|
-
def image_convert_options
|
|
28
|
-
{}
|
|
29
|
-
end
|
|
30
26
|
end
|
|
31
27
|
end
|
|
32
28
|
end
|
|
@@ -21,7 +21,6 @@ module Enjoy
|
|
|
21
21
|
unless Enjoy.config.news_image_styles.nil?
|
|
22
22
|
enjoy_cms_mongoid_attached_file(:image,
|
|
23
23
|
styles: Enjoy.configuration.news_image_styles,
|
|
24
|
-
convert_options: Enjoy.configuration.news_image_convert_options,
|
|
25
24
|
content_type: { content_type: ["image/jpg", "image/jpeg", "image/png"] }
|
|
26
25
|
)
|
|
27
26
|
end
|
|
@@ -21,7 +21,6 @@ module Enjoy
|
|
|
21
21
|
field :og_title, type: String, localize: Enjoy.config.localize
|
|
22
22
|
enjoy_cms_mongoid_attached_file(:og_image,
|
|
23
23
|
styles: lambda { |attachment| attachment.instance.og_image_styles },
|
|
24
|
-
convert_options: lambda { |attachment| attachment.instance.og_image_convert_options },
|
|
25
24
|
content_type: { content_type: ["image/jpg", "image/jpeg", "image/png"] }
|
|
26
25
|
)
|
|
27
26
|
end
|
|
@@ -29,9 +28,6 @@ module Enjoy
|
|
|
29
28
|
def og_image_styles
|
|
30
29
|
{thumb: "800x600>"}
|
|
31
30
|
end
|
|
32
|
-
def og_image_convert_options
|
|
33
|
-
{}
|
|
34
|
-
end
|
|
35
31
|
|
|
36
32
|
end
|
|
37
33
|
end
|
data/lib/enjoy/version.rb
CHANGED
data/lib/enjoy_cms.rb
CHANGED
data/template.rb
CHANGED
|
@@ -14,7 +14,7 @@ remove_file 'Gemfile'
|
|
|
14
14
|
create_file 'Gemfile' do <<-TEXT
|
|
15
15
|
source 'https://rubygems.org'
|
|
16
16
|
|
|
17
|
-
gem 'rails', '4.2.4' #'~> 5.0.0.
|
|
17
|
+
gem 'rails', '4.2.4' #'~> 5.0.0.beta3'
|
|
18
18
|
#{if mongoid then "gem 'mongoid'" else "gem 'pg'" end}
|
|
19
19
|
|
|
20
20
|
gem 'sass'
|
|
@@ -83,6 +83,11 @@ group :production do
|
|
|
83
83
|
gem "god"
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
|
|
87
|
+
gem 'image_optim'
|
|
88
|
+
gem 'image_optim_pack'
|
|
89
|
+
gem 'paperclip-optimizer'
|
|
90
|
+
|
|
86
91
|
TEXT
|
|
87
92
|
end
|
|
88
93
|
|
|
@@ -191,6 +196,90 @@ Rails.application.config.session_store :mongoid_store
|
|
|
191
196
|
end
|
|
192
197
|
end
|
|
193
198
|
|
|
199
|
+
remove_file 'paperclip_optimizer.rb'
|
|
200
|
+
create_file 'paperclip_optimizer.rb' do <<-TEXT
|
|
201
|
+
# Set global optimisation options for all Paperclip models
|
|
202
|
+
|
|
203
|
+
# By default, image_optim enables all the compression binaries it supports and
|
|
204
|
+
# requires them to be present on your system, failing if one is actually missing.
|
|
205
|
+
|
|
206
|
+
# We disable everything by default and ignore missing ones with `skip_missing_workers`.
|
|
207
|
+
# This way, should a new version add support for a library we do not yet disable here,
|
|
208
|
+
# things won't suddenly break.
|
|
209
|
+
|
|
210
|
+
Paperclip::PaperclipOptimizer.default_options = {
|
|
211
|
+
skip_missing_workers: true,
|
|
212
|
+
advpng: true,
|
|
213
|
+
gifsicle: true,
|
|
214
|
+
jhead: true,
|
|
215
|
+
jpegoptim: true,
|
|
216
|
+
jpegrecompress: true,
|
|
217
|
+
jpegtran: true,
|
|
218
|
+
optipng: true,
|
|
219
|
+
pngcrush: true,
|
|
220
|
+
pngout: false,
|
|
221
|
+
pngquant: true,
|
|
222
|
+
svgo: false,
|
|
223
|
+
|
|
224
|
+
nice: 5,
|
|
225
|
+
verbose: true
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
# All available image_optim options. See https://github.com/toy/image_optim for more information
|
|
229
|
+
|
|
230
|
+
# Paperclip::PaperclipOptimizer.default_options = {
|
|
231
|
+
# skip_missing_workers: false, # Skip workers with missing or problematic binaries (defaults to false)
|
|
232
|
+
# nice: 10, # Nice level (defaults to 10)
|
|
233
|
+
# threads: 1, # Number of threads or disable (defaults to number of processors)
|
|
234
|
+
# verbose: false, # Verbose output (defaults to false)
|
|
235
|
+
# pack: nil, # Require image_optim_pack or disable it, by default image_optim_pack will be used if available,
|
|
236
|
+
# # will turn on :skip-missing-workers unless explicitly disabled (defaults to nil)
|
|
237
|
+
# allow_lossy: false, # Allow lossy workers and optimizations (defaults to false)
|
|
238
|
+
# advpng: {
|
|
239
|
+
# leve: 4 # Compression level: 0 - don't compress, 1 - fast, 2 - normal, 3 - extra, 4 - extreme (defaults to 4)
|
|
240
|
+
# },
|
|
241
|
+
# gifsicle: {
|
|
242
|
+
# interlace: true, # Interlace: true - interlace on, false - interlace off, nil - as is in original image
|
|
243
|
+
# # (defaults to running two instances, one with interlace off and one with on)
|
|
244
|
+
# level: 3, # Compression level: 1 - light and fast, 2 - normal, 3 - heavy (slower) (defaults to 3)
|
|
245
|
+
# careful: false # Avoid bugs with some software (defaults to false)
|
|
246
|
+
# },
|
|
247
|
+
# jhead: true, # no options
|
|
248
|
+
# jpegoptim: {
|
|
249
|
+
# strip: :all, # List of extra markers to strip: :comments, :exif, :iptc, :icc or :all (defaults to :all)
|
|
250
|
+
# max_quality: 100 # Maximum image quality factor 0..100 (defaults to 100)
|
|
251
|
+
# },
|
|
252
|
+
# jpegrecompress: {
|
|
253
|
+
# quality: 3 # JPEG quality preset: 0 - low, 1 - medium, 2 - high, 3 - veryhigh (defaults to 3)
|
|
254
|
+
# },
|
|
255
|
+
# jpegtran: {
|
|
256
|
+
# copy_chunks: false, # Copy all chunks (defaults to false)
|
|
257
|
+
# progressive: true, # Create progressive JPEG file (defaults to true)
|
|
258
|
+
# jpegrescan: false # Use jpegtran through jpegrescan, ignore progressive option (defaults to false)
|
|
259
|
+
# },
|
|
260
|
+
# optipng: {
|
|
261
|
+
# level: 6, # Optimization level preset: 0 is least, 7 is best (defaults to 6)
|
|
262
|
+
# interlace: false # Interlace: true - interlace on, false - interlace off, nil - as is in original image (defaults to false)
|
|
263
|
+
# },
|
|
264
|
+
# pngcrush: {
|
|
265
|
+
# chunks: :alla, # List of chunks to remove or :alla - all except tRNS/transparency or
|
|
266
|
+
# # :allb - all except tRNS and gAMA/gamma (defaults to :alla)
|
|
267
|
+
# fix: false, # Fix otherwise fatal conditions such as bad CRCs (defaults to false)
|
|
268
|
+
# brute: false # Brute force try all methods, very time-consuming and generally not worthwhile (defaults to false)
|
|
269
|
+
# },
|
|
270
|
+
# pngout: {
|
|
271
|
+
# copy_chunks: false, # Copy optional chunks (defaults to false)
|
|
272
|
+
# strategy: 0 # Strategy: 0 - xtreme, 1 - intense, 2 - longest Match, 3 - huffman Only, 4 - uncompressed (defaults to 0)
|
|
273
|
+
# },
|
|
274
|
+
# pngquant: {
|
|
275
|
+
# quality: 100..100, # min..max - don't save below min, use less colors below max (both in range 0..100; in yaml - !ruby/range 0..100) (defaults to 100..100)
|
|
276
|
+
# speed: 3 # speed/quality trade-off: 1 - slow, 3 - default, 11 - fast & rough (defaults to 3)
|
|
277
|
+
# },
|
|
278
|
+
# svgo: true # no options
|
|
279
|
+
# }
|
|
280
|
+
TEXT
|
|
281
|
+
end
|
|
282
|
+
|
|
194
283
|
remove_file 'app/controllers/application_controller.rb'
|
|
195
284
|
create_file 'app/controllers/application_controller.rb' do <<-TEXT
|
|
196
285
|
class ApplicationController < ActionController::Base
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: enjoy_cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.1.
|
|
4
|
+
version: 0.3.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Kiseliev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-03-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -388,48 +388,6 @@ dependencies:
|
|
|
388
388
|
- - ">="
|
|
389
389
|
- !ruby/object:Gem::Version
|
|
390
390
|
version: '0'
|
|
391
|
-
- !ruby/object:Gem::Dependency
|
|
392
|
-
name: image_optim
|
|
393
|
-
requirement: !ruby/object:Gem::Requirement
|
|
394
|
-
requirements:
|
|
395
|
-
- - ">="
|
|
396
|
-
- !ruby/object:Gem::Version
|
|
397
|
-
version: '0'
|
|
398
|
-
type: :runtime
|
|
399
|
-
prerelease: false
|
|
400
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
401
|
-
requirements:
|
|
402
|
-
- - ">="
|
|
403
|
-
- !ruby/object:Gem::Version
|
|
404
|
-
version: '0'
|
|
405
|
-
- !ruby/object:Gem::Dependency
|
|
406
|
-
name: image_optim_pack
|
|
407
|
-
requirement: !ruby/object:Gem::Requirement
|
|
408
|
-
requirements:
|
|
409
|
-
- - ">="
|
|
410
|
-
- !ruby/object:Gem::Version
|
|
411
|
-
version: '0'
|
|
412
|
-
type: :runtime
|
|
413
|
-
prerelease: false
|
|
414
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
415
|
-
requirements:
|
|
416
|
-
- - ">="
|
|
417
|
-
- !ruby/object:Gem::Version
|
|
418
|
-
version: '0'
|
|
419
|
-
- !ruby/object:Gem::Dependency
|
|
420
|
-
name: paperclip-optimizer
|
|
421
|
-
requirement: !ruby/object:Gem::Requirement
|
|
422
|
-
requirements:
|
|
423
|
-
- - ">="
|
|
424
|
-
- !ruby/object:Gem::Version
|
|
425
|
-
version: '0'
|
|
426
|
-
type: :runtime
|
|
427
|
-
prerelease: false
|
|
428
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
429
|
-
requirements:
|
|
430
|
-
- - ">="
|
|
431
|
-
- !ruby/object:Gem::Version
|
|
432
|
-
version: '0'
|
|
433
391
|
description: 'EnjoyCMS '
|
|
434
392
|
email:
|
|
435
393
|
- dev@enjoycreate.ru
|
|
@@ -544,7 +502,6 @@ files:
|
|
|
544
502
|
- app/views/shared/_obj.html.slim
|
|
545
503
|
- app/views/shared/_og.html.slim
|
|
546
504
|
- app/views/simple_captcha/_simple_captcha.html.slim
|
|
547
|
-
- config/initializers/paperclip_optimizer.rb
|
|
548
505
|
- config/initializers/simple_captcha.rb
|
|
549
506
|
- config/locales/en.enjoy.yml
|
|
550
507
|
- config/locales/en.enjoy_admin.yml
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# Set global optimisation options for all Paperclip models
|
|
2
|
-
|
|
3
|
-
# By default, image_optim enables all the compression binaries it supports and
|
|
4
|
-
# requires them to be present on your system, failing if one is actually missing.
|
|
5
|
-
|
|
6
|
-
# We disable everything by default and ignore missing ones with `skip_missing_workers`.
|
|
7
|
-
# This way, should a new version add support for a library we do not yet disable here,
|
|
8
|
-
# things won't suddenly break.
|
|
9
|
-
|
|
10
|
-
Paperclip::PaperclipOptimizer.default_options = {
|
|
11
|
-
skip_missing_workers: true,
|
|
12
|
-
advpng: true,
|
|
13
|
-
gifsicle: true,
|
|
14
|
-
jhead: true,
|
|
15
|
-
jpegoptim: true,
|
|
16
|
-
jpegrecompress: true,
|
|
17
|
-
jpegtran: true,
|
|
18
|
-
optipng: true,
|
|
19
|
-
pngcrush: true,
|
|
20
|
-
pngout: false,
|
|
21
|
-
pngquant: true,
|
|
22
|
-
svgo: false,
|
|
23
|
-
|
|
24
|
-
nice: 5,
|
|
25
|
-
verbose: true
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
# All available image_optim options. See https://github.com/toy/image_optim for more information
|
|
29
|
-
|
|
30
|
-
# Paperclip::PaperclipOptimizer.default_options = {
|
|
31
|
-
# skip_missing_workers: false, # Skip workers with missing or problematic binaries (defaults to false)
|
|
32
|
-
# nice: 10, # Nice level (defaults to 10)
|
|
33
|
-
# threads: 1, # Number of threads or disable (defaults to number of processors)
|
|
34
|
-
# verbose: false, # Verbose output (defaults to false)
|
|
35
|
-
# pack: nil, # Require image_optim_pack or disable it, by default image_optim_pack will be used if available,
|
|
36
|
-
# # will turn on :skip-missing-workers unless explicitly disabled (defaults to nil)
|
|
37
|
-
# allow_lossy: false, # Allow lossy workers and optimizations (defaults to false)
|
|
38
|
-
# advpng: {
|
|
39
|
-
# leve: 4 # Compression level: 0 - don't compress, 1 - fast, 2 - normal, 3 - extra, 4 - extreme (defaults to 4)
|
|
40
|
-
# },
|
|
41
|
-
# gifsicle: {
|
|
42
|
-
# interlace: true, # Interlace: true - interlace on, false - interlace off, nil - as is in original image
|
|
43
|
-
# # (defaults to running two instances, one with interlace off and one with on)
|
|
44
|
-
# level: 3, # Compression level: 1 - light and fast, 2 - normal, 3 - heavy (slower) (defaults to 3)
|
|
45
|
-
# careful: false # Avoid bugs with some software (defaults to false)
|
|
46
|
-
# },
|
|
47
|
-
# jhead: true, # no options
|
|
48
|
-
# jpegoptim: {
|
|
49
|
-
# strip: :all, # List of extra markers to strip: :comments, :exif, :iptc, :icc or :all (defaults to :all)
|
|
50
|
-
# max_quality: 100 # Maximum image quality factor 0..100 (defaults to 100)
|
|
51
|
-
# },
|
|
52
|
-
# jpegrecompress: {
|
|
53
|
-
# quality: 3 # JPEG quality preset: 0 - low, 1 - medium, 2 - high, 3 - veryhigh (defaults to 3)
|
|
54
|
-
# },
|
|
55
|
-
# jpegtran: {
|
|
56
|
-
# copy_chunks: false, # Copy all chunks (defaults to false)
|
|
57
|
-
# progressive: true, # Create progressive JPEG file (defaults to true)
|
|
58
|
-
# jpegrescan: false # Use jpegtran through jpegrescan, ignore progressive option (defaults to false)
|
|
59
|
-
# },
|
|
60
|
-
# optipng: {
|
|
61
|
-
# level: 6, # Optimization level preset: 0 is least, 7 is best (defaults to 6)
|
|
62
|
-
# interlace: false # Interlace: true - interlace on, false - interlace off, nil - as is in original image (defaults to false)
|
|
63
|
-
# },
|
|
64
|
-
# pngcrush: {
|
|
65
|
-
# chunks: :alla, # List of chunks to remove or :alla - all except tRNS/transparency or
|
|
66
|
-
# # :allb - all except tRNS and gAMA/gamma (defaults to :alla)
|
|
67
|
-
# fix: false, # Fix otherwise fatal conditions such as bad CRCs (defaults to false)
|
|
68
|
-
# brute: false # Brute force try all methods, very time-consuming and generally not worthwhile (defaults to false)
|
|
69
|
-
# },
|
|
70
|
-
# pngout: {
|
|
71
|
-
# copy_chunks: false, # Copy optional chunks (defaults to false)
|
|
72
|
-
# strategy: 0 # Strategy: 0 - xtreme, 1 - intense, 2 - longest Match, 3 - huffman Only, 4 - uncompressed (defaults to 0)
|
|
73
|
-
# },
|
|
74
|
-
# pngquant: {
|
|
75
|
-
# quality: 100..100, # min..max - don't save below min, use less colors below max (both in range 0..100; in yaml - !ruby/range 0..100) (defaults to 100..100)
|
|
76
|
-
# speed: 3 # speed/quality trade-off: 1 - slow, 3 - default, 11 - fast & rough (defaults to 3)
|
|
77
|
-
# },
|
|
78
|
-
# svgo: true # no options
|
|
79
|
-
# }
|