middleman-imageoptim 0.0.3 → 0.0.4
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.
- data/README.md +8 -8
- data/lib/middleman-imageoptim/version.rb +1 -1
- data/middleman-imageoptim.gemspec +3 -3
- metadata +4 -4
data/README.md
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
## Wat.
|
4
4
|
|
5
|
-
Compress and optimise your imagery during `middleman build` by running [image_optim](https://github.com/toy/image_optim) over it. Yay-hooray!
|
5
|
+
Serving big images is fo numb-skulls! Compress and optimise your imagery during `middleman build` by running [image_optim](https://github.com/toy/image_optim) over it. Yay-hooray!
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
9
|
Go set up the [image_optim](https://github.com/toy/image_optim) external utilities, then;
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem "middleman-imageoptim", "0.0.3"
|
12
|
+
gem "middleman-imageoptim", "~> 0.0.3"
|
13
13
|
```
|
14
14
|
|
15
15
|
## Usage
|
@@ -35,12 +35,12 @@ activate :image_optim do |image_optim|
|
|
35
35
|
|
36
36
|
# compressor worker options, individual optimisers can be disabled by passing
|
37
37
|
# false instead of a hash
|
38
|
-
image_optim.pngcrush_options
|
39
|
-
image_optim.pngout_options
|
40
|
-
image_optim.optipng_options
|
41
|
-
image_optim.advpng_options
|
38
|
+
image_optim.pngcrush_options = {:chunks => ['alla'], :fix => false, :brute => false}
|
39
|
+
image_optim.pngout_options = {:copy_chunks => false, :strategy => 0}
|
40
|
+
image_optim.optipng_options = {:level => 6, :interlace => false}
|
41
|
+
image_optim.advpng_options = {:level => 4}
|
42
42
|
image_optim.jpegoptim_options = {:strip => ['all'], :max_quality => 100}
|
43
|
-
image_optim.jpegtran_options
|
44
|
-
image_optim.gifsicle_options
|
43
|
+
image_optim.jpegtran_options = {:copy_chunks => false, :progressive => true, :jpegrescan => true}
|
44
|
+
image_optim.gifsicle_options = {:interlace => false}
|
45
45
|
end
|
46
46
|
```
|
@@ -8,9 +8,9 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.platform = Gem::Platform::RUBY
|
9
9
|
gem.authors = ["Justin Morris"]
|
10
10
|
gem.email = ["desk@pixelbloom.com"]
|
11
|
-
gem.homepage = "
|
12
|
-
gem.summary = %q{
|
13
|
-
gem.description = %q{
|
11
|
+
gem.homepage = "https://github.com/plasticine/middleman-imageoptim"
|
12
|
+
gem.summary = %q{Small images are small! Compress yours during middleman build.}
|
13
|
+
gem.description = %q{Small images are small! Compress yours during middleman build.}
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split("\n")
|
16
16
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-imageoptim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: 0.8.0
|
46
|
-
description:
|
46
|
+
description: Small images are small! Compress yours during middleman build.
|
47
47
|
email:
|
48
48
|
- desk@pixelbloom.com
|
49
49
|
executables: []
|
@@ -59,7 +59,7 @@ files:
|
|
59
59
|
- lib/middleman-imageoptim/version.rb
|
60
60
|
- lib/middleman_extension.rb
|
61
61
|
- middleman-imageoptim.gemspec
|
62
|
-
homepage:
|
62
|
+
homepage: https://github.com/plasticine/middleman-imageoptim
|
63
63
|
licenses: []
|
64
64
|
post_install_message:
|
65
65
|
rdoc_options: []
|
@@ -82,6 +82,6 @@ rubyforge_project:
|
|
82
82
|
rubygems_version: 1.8.23
|
83
83
|
signing_key:
|
84
84
|
specification_version: 3
|
85
|
-
summary:
|
85
|
+
summary: Small images are small! Compress yours during middleman build.
|
86
86
|
test_files:
|
87
87
|
- features/support/env.rb
|