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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTcxMThlMmE2OGE1YWYxZjFkODZjY2EyZjYxYWM0MDk0YTZmNGJhMg==
4
+ MmQ2Y2Q0NDBlYzJjYzQyODlhMjg1NjI1ZWJkODVhNzQwZGM4MzUwZA==
5
5
  data.tar.gz: !binary |-
6
- ZDAwNmMyYjc3M2MzN2UzNjZmYmUzMWQwYzg1NTA2NDhmZjU2YTVmNQ==
6
+ NzYxNjRjMjFiYWY2MzQwODdkY2NkZTkwMDM3ODY1NGQ2NDc0NGZiMA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YmYwYmQ1YWRhYjljNDAwYmQ3OTk3MzFhYTg5YzM2MmMyMDAxOWY1OGNlMmNl
10
- NTg2OWI5YWNlNmIyMDQ2NmZmOGZmMzFjYjJmNTJmYjI1M2QxNzk5NjhhMTg5
11
- Zjc1MzFhY2FjZjg5YTlhOGY0YWFmOTUxNjY0YzNkODM4OTU1YTQ=
9
+ ZjEwZGVmNjE2YTBmYmFiM2M1ZTlkNWI0YzgyOWEzZTAzNzFkNDcxNDIwMGNh
10
+ ODgyNGU5MjU5MTdlMjY4OGNmOGQ5NWUxYWU1MTZhZWEwNmE5ODI3NmZiNmE4
11
+ MjM4NzNlNmI0MGU4YTM5NzFlMmVkOGQ0YTU1MTE5NTBkMzE2OGE=
12
12
  data.tar.gz: !binary |-
13
- YjJmMWJiZjEzOThiOGQwMzkyNTQxNzRiOGUyZDNkMGY5ZGU5MWJhYzViN2Iy
14
- Yjc5N2U1ZWUyNDNlNTgzZmQ0MTU0YjEyYmQ4MDNlMDU0OTJlZjY1NDkyMDg5
15
- ZTFjYjZlYjlmZTdiMjkxMmRiMGYwMGMwYjM4MDc0MWIwNGRiODk=
13
+ NWRmODhjMmE3Y2VhYTc0YTBjNjA2ZGIwNzY4ZGZiY2EzZTQxOWZhYjk0Mzhm
14
+ YmRkYTUyMDUxZTZmZjA0NzQ2MzU0ODkyZGRlYjIyOWEzYTQxODUxZTliM2Ni
15
+ MWVkMmJkNWVlMzZiOGM1ZTQzY2M5ZjEyNzZjYzkzOGU0YTZlMjY=
@@ -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: `PATH="/custom/location:$PATH" image_optim *.jpg`
29
+ * before command:
30
30
 
31
- * inside script: `ENV['PATH'] = "/custom/location:#{ENV['PATH']}"; ImageOptim.optimize_images([…])`
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
- don't fail but warn on bins not present
5
- better documentation
6
+ based on file size?
7
+ fail worker instead of process on bin not present?
6
8
  preserve time/attrs option?
7
- jpegrescan
9
+ file based config
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'image_optim'
5
- s.version = '0.8.0'
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 & unknown_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.0
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-03-27 00:00:00.000000000 Z
11
+ date: 2013-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fspath