image_optim 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.markdown +14 -2
- data/TODO +6 -4
- data/image_optim.gemspec +1 -1
- data/lib/image_optim/worker/jpegoptim.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmQ2Y2Q0NDBlYzJjYzQyODlhMjg1NjI1ZWJkODVhNzQwZGM4MzUwZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzYxNjRjMjFiYWY2MzQwODdkY2NkZTkwMDM3ODY1NGQ2NDc0NGZiMA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjEwZGVmNjE2YTBmYmFiM2M1ZTlkNWI0YzgyOWEzZTAzNzFkNDcxNDIwMGNh
|
10
|
+
ODgyNGU5MjU5MTdlMjY4OGNmOGQ5NWUxYWU1MTZhZWEwNmE5ODI3NmZiNmE4
|
11
|
+
MjM4NzNlNmI0MGU4YTM5NzFlMmVkOGQ0YTU1MTE5NTBkMzE2OGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWRmODhjMmE3Y2VhYTc0YTBjNjA2ZGIwNzY4ZGZiY2EzZTQxOWZhYjk0Mzhm
|
14
|
+
YmRkYTUyMDUxZTZmZjA0NzQ2MzU0ODkyZGRlYjIyOWEzYTQxODUxZTliM2Ni
|
15
|
+
MWVkMmJkNWVlMzZiOGM1ZTQzY2M5ZjEyNzZjYzkzOGU0YTZlMjY=
|
data/README.markdown
CHANGED
@@ -26,9 +26,21 @@ Specify custom bin location using `XXX_BIN` environment variable (`JPEGOPTIM_BIN
|
|
26
26
|
|
27
27
|
Besides permanently setting environment variables in `~/.profile`, `~/.bash_profile`, `~/.bashrc`, `~/.zshrc`, … they can be set:
|
28
28
|
|
29
|
-
* before command:
|
29
|
+
* before command:
|
30
30
|
|
31
|
-
|
31
|
+
`PATH="/custom/location:$PATH" image_optim *.jpg`
|
32
|
+
|
33
|
+
for example:
|
34
|
+
|
35
|
+
`PATH="/Applications/ImageOptim.app/Contents/MacOS:$PATH" image_optim *.jpg`
|
36
|
+
|
37
|
+
* inside script:
|
38
|
+
|
39
|
+
`ENV['PATH'] = "/custom/location:#{ENV['PATH']}"; ImageOptim.optimize_images([…])`
|
40
|
+
|
41
|
+
for example:
|
42
|
+
|
43
|
+
`ENV['PATH'] = "/Applications/ImageOptim.app/Contents/MacOS:#{ENV['PATH']}"; ImageOptim.optimize_images([…])`
|
32
44
|
|
33
45
|
## Binaries installation
|
34
46
|
|
data/TODO
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
leave_color branch
|
1
|
+
preserve color (leave_color branch)
|
2
|
+
preserve all extra stuff
|
3
|
+
global level of optimization #10
|
2
4
|
autorotate jpeg based on exif (jhead -auotrot)
|
3
5
|
timeout workers?
|
4
|
-
|
5
|
-
|
6
|
+
based on file size?
|
7
|
+
fail worker instead of process on bin not present?
|
6
8
|
preserve time/attrs option?
|
7
|
-
|
9
|
+
file based config
|
data/image_optim.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'image_optim'
|
5
|
-
s.version = '0.8.
|
5
|
+
s.version = '0.8.1'
|
6
6
|
s.summary = %q{Optimize (lossless compress) images (jpeg, png, gif) using external utilities (advpng, gifsicle, jpegoptim, jpegtran, optipng, pngcrush, pngout)}
|
7
7
|
s.homepage = "http://github.com/toy/#{s.name}"
|
8
8
|
s.authors = ['Ivan Kuchin']
|
@@ -8,7 +8,7 @@ class ImageOptim
|
|
8
8
|
known_values = %w[all comments exif iptc icc]
|
9
9
|
unknown_values = values - known_values
|
10
10
|
warn "Unknown markers for jpegoptim: #{unknown_values.join(', ')}" unless unknown_values.empty?
|
11
|
-
values &
|
11
|
+
values & known_values
|
12
12
|
end
|
13
13
|
|
14
14
|
option(:max_quality, 100, 'Maximum image quality factor 0..100'){ |v| OptionHelpers.limit_with_range(v.to_i, 0..100) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_optim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fspath
|