photo-cook 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/photo-cook/optimization/image-optim.rb +8 -10
- data/lib/photo-cook/version.rb +1 -1
- data/lib/photo-cook.rb +0 -1
- data/photo-cook.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25e1d4cb02a5f3df0c262f908f01fa2700175a24
|
4
|
+
data.tar.gz: 399f1a7f03866e622e0a7be870188969c7d30daf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6888c03a0795f408bf93998625379a139d0499a8e5100701ad0a1bef8c56181921e3a18b89fee4c35d2350aa5331416d9251106b441ed6bd0241936e29a65679
|
7
|
+
data.tar.gz: 1eee4cb845f7d93d8e9733eb96e2c0cb276a369f22b478e5b05ec0ea9e429e5ef9395066d6002f75ed5deb115ec3517014b091cecd3d630fe8a72e20b8898fbb
|
@@ -24,14 +24,7 @@ module PhotoCook
|
|
24
24
|
nice: 10,
|
25
25
|
|
26
26
|
# Number of threads or disable (defaults to number of processors)
|
27
|
-
threads:
|
28
|
-
match = if OS.osx?
|
29
|
-
`sysctl -a | grep machdep.cpu | grep thread_count`
|
30
|
-
else
|
31
|
-
`cat /proc/cpuinfo | grep "cpu cores"`
|
32
|
-
end
|
33
|
-
$~.to_s.to_i if match.to_s =~ /\d{1,2}/
|
34
|
-
end,
|
27
|
+
threads: nil,
|
35
28
|
|
36
29
|
# Verbose output (defaults to false)
|
37
30
|
verbose: false,
|
@@ -110,16 +103,21 @@ module PhotoCook
|
|
110
103
|
copy_chunks: false,
|
111
104
|
|
112
105
|
# Strategy: 0 - xtreme, 1 - intense, 2 - longest Match, 3 - huffman Only, 4 - uncompressed (defaults to 0)
|
113
|
-
strategy:
|
106
|
+
strategy: 3
|
114
107
|
},
|
115
108
|
pngquant: {
|
109
|
+
# Allow quality option (defaults to false)
|
110
|
+
allow_lossy: false,
|
111
|
+
|
116
112
|
# min..max - don't save below min, use less colors below max (both in range 0..100; in yaml - !ruby/range 0..100), ignored in default/lossless mode (defaults to 100..100, 0..100 in lossy mode)
|
117
113
|
quality: 100..100,
|
118
114
|
|
119
115
|
# speed/quality trade-off: 1 - slow, 3 - default, 11 - fast & rough (defaults to 3)
|
120
|
-
speed:
|
116
|
+
speed: 10
|
121
117
|
},
|
122
118
|
svgo: {
|
119
|
+
disable: true,
|
120
|
+
|
123
121
|
# List of plugins to disable (defaults to [])
|
124
122
|
disable_plugins: [],
|
125
123
|
|
data/lib/photo-cook/version.rb
CHANGED
data/lib/photo-cook.rb
CHANGED
data/photo-cook.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: photo-cook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav Konoplov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '4.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: os
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0.9'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0.9'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: bundler
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|