squeezem 0.1 → 0.1.1
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 +31 -6
- metadata +6 -7
data/README
CHANGED
@@ -2,19 +2,44 @@ List pngs which are bigger than they need to be. Can optionally
|
|
2
2
|
compress them, but is designed mainly to keep an eye on a tree of
|
3
3
|
images to make sure they stay in good shape.
|
4
4
|
|
5
|
+
Install
|
6
|
+
|
7
|
+
install pngcrush
|
8
|
+
sudo gem install squeezem
|
9
|
+
|
5
10
|
Usage
|
6
11
|
|
7
|
-
List files which could benefit from squeezing, suitable for running
|
12
|
+
List files which could benefit from squeezing, suitable for running
|
13
|
+
from cron:
|
14
|
+
|
15
|
+
squeezem path/to/images ...
|
16
|
+
|
17
|
+
Example output:
|
18
|
+
|
19
|
+
test/apple.png
|
20
|
+
test/banana.png
|
21
|
+
test/pear.png
|
22
|
+
...
|
23
|
+
11 files out of 12 could save 192972 out of 229834 (83.96)%. 17 files ignored.
|
24
|
+
|
25
|
+
Results of processing previously seen files are cached, so only new or
|
26
|
+
changed files are processed. The cache lives in ~/.squeezem-cache, and
|
27
|
+
is keyed by canonical filename, so you can pass different paths to the
|
28
|
+
same file and it will only be reprocessed when it changes.
|
29
|
+
|
30
|
+
eg. a.png will only be processed once:
|
8
31
|
|
9
|
-
squeezem .
|
32
|
+
squeezem /web/images/a.png
|
33
|
+
cd /web/images
|
34
|
+
squeezem a.png
|
10
35
|
|
11
|
-
Squeeze 'em
|
36
|
+
Squeeze 'em. Runs pngcrush and compresses files in-place:
|
12
37
|
|
13
|
-
squeezem --squeezem
|
38
|
+
squeezem --squeezem .
|
14
39
|
|
15
|
-
|
40
|
+
Forces previously seen files to be reprocessed:
|
16
41
|
|
17
|
-
squeezem --ignore-cache
|
42
|
+
squeezem --ignore-cache .
|
18
43
|
|
19
44
|
Related
|
20
45
|
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squeezem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Steve Woodcock
|
@@ -61,12 +62,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
62
|
requirements:
|
62
63
|
- - ">="
|
63
64
|
- !ruby/object:Gem::Version
|
64
|
-
hash:
|
65
|
+
hash: 3
|
65
66
|
segments:
|
66
|
-
-
|
67
|
-
|
68
|
-
- 6
|
69
|
-
version: 1.3.6
|
67
|
+
- 0
|
68
|
+
version: "0"
|
70
69
|
requirements: []
|
71
70
|
|
72
71
|
rubyforge_project: squeezem
|