image_compressor_pack 0.1.3-universal-darwin-15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +22 -0
  3. data/lib/.paths.yml +12 -0
  4. data/lib/image_compressor_pack/dynamically_linked_recipes.yml +99 -0
  5. data/lib/image_compressor_pack/recipes.rb +42 -0
  6. data/lib/image_compressor_pack/statically_linked_recipes.yml +106 -0
  7. data/lib/image_compressor_pack/version.rb +3 -0
  8. data/lib/image_compressor_pack.rb +24 -0
  9. data/ports/advancecomp-1.2-x86_64-apple-darwin15.0.0.installed +0 -0
  10. data/ports/archives/2.1.1.tar.gz +0 -0
  11. data/ports/archives/2.7.1.tar.gz +0 -0
  12. data/ports/archives/advancecomp-1.20.tar.gz +0 -0
  13. data/ports/archives/gifsicle-1.88.tar.gz +0 -0
  14. data/ports/archives/jhead-3.00.tar.gz +0 -0
  15. data/ports/archives/jpegoptim-1.4.3.tar.gz +0 -0
  16. data/ports/archives/lcms2-2.7.tar.gz +0 -0
  17. data/ports/archives/libpng-1.6.21.tar.gz +0 -0
  18. data/ports/archives/mozjpeg-3.1-release-source.tar.gz +0 -0
  19. data/ports/archives/nasm-2.12.01.tar.gz +0 -0
  20. data/ports/archives/optipng-0.7.6.tar.gz +0 -0
  21. data/ports/archives/pngcrush-1.8.1.tar.gz +0 -0
  22. data/ports/archives/zlib-1.2.8.tar.gz +0 -0
  23. data/ports/gifsicle-1.88-x86_64-apple-darwin15.0.0.installed +0 -0
  24. data/ports/jhead-3.0-x86_64-apple-darwin15.0.0.installed +0 -0
  25. data/ports/jpeg-archive-2.1.1-x86_64-apple-darwin15.0.0.installed +0 -0
  26. data/ports/jpegoptim-1.4.3-x86_64-apple-darwin15.0.0.installed +0 -0
  27. data/ports/lcms2-2.7-x86_64-apple-darwin15.0.0.installed +0 -0
  28. data/ports/libpng-1.6.21-x86_64-apple-darwin15.0.0.installed +0 -0
  29. data/ports/mozjpeg-3.1-x86_64-apple-darwin15.0.0.installed +0 -0
  30. data/ports/nasm-2.12.01-x86_64-apple-darwin15.0.0.installed +0 -0
  31. data/ports/optipng-0.7.6-x86_64-apple-darwin15.0.0.installed +0 -0
  32. data/ports/pngcrush-1.8.1-x86_64-apple-darwin15.0.0.installed +0 -0
  33. data/ports/pngquant-2.7.1-x86_64-apple-darwin15.0.0.installed +0 -0
  34. data/ports/x86_64-apple-darwin15.0.0/advancecomp/1.2/bin/advdef +0 -0
  35. data/ports/x86_64-apple-darwin15.0.0/advancecomp/1.2/bin/advmng +0 -0
  36. data/ports/x86_64-apple-darwin15.0.0/advancecomp/1.2/bin/advpng +0 -0
  37. data/ports/x86_64-apple-darwin15.0.0/advancecomp/1.2/bin/advzip +0 -0
  38. data/ports/x86_64-apple-darwin15.0.0/advancecomp/1.2/share/man/man1/advdef.1 +83 -0
  39. data/ports/x86_64-apple-darwin15.0.0/advancecomp/1.2/share/man/man1/advmng.1 +197 -0
  40. data/ports/x86_64-apple-darwin15.0.0/advancecomp/1.2/share/man/man1/advpng.1 +93 -0
  41. data/ports/x86_64-apple-darwin15.0.0/advancecomp/1.2/share/man/man1/advzip.1 +116 -0
  42. data/ports/x86_64-apple-darwin15.0.0/gifsicle/1.88/bin/gifsicle +0 -0
  43. data/ports/x86_64-apple-darwin15.0.0/gifsicle/1.88/share/man/man1/gifsicle.1 +1318 -0
  44. data/ports/x86_64-apple-darwin15.0.0/jhead/3.0/bin/jhead +0 -0
  45. data/ports/x86_64-apple-darwin15.0.0/jpeg-archive/2.1.1/bin/jpeg-archive +40 -0
  46. data/ports/x86_64-apple-darwin15.0.0/jpeg-archive/2.1.1/bin/jpeg-compare +0 -0
  47. data/ports/x86_64-apple-darwin15.0.0/jpeg-archive/2.1.1/bin/jpeg-hash +0 -0
  48. data/ports/x86_64-apple-darwin15.0.0/jpeg-archive/2.1.1/bin/jpeg-recompress +0 -0
  49. data/ports/x86_64-apple-darwin15.0.0/jpegoptim/1.4.3/bin/jpegoptim +0 -0
  50. data/ports/x86_64-apple-darwin15.0.0/jpegoptim/1.4.3/share/man/man1/jpegoptim.1 +186 -0
  51. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/bin/jpgicc +0 -0
  52. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/bin/linkicc +0 -0
  53. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/bin/psicc +0 -0
  54. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/bin/tificc +0 -0
  55. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/bin/transicc +0 -0
  56. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/include/lcms2.h +1889 -0
  57. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/include/lcms2_plugin.h +637 -0
  58. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/lib/liblcms2.a +0 -0
  59. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/lib/liblcms2.la +41 -0
  60. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/lib/pkgconfig/lcms2.pc +11 -0
  61. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/share/man/man1/jpgicc.1 +122 -0
  62. data/ports/x86_64-apple-darwin15.0.0/lcms2/2.7/share/man/man1/tificc.1 +117 -0
  63. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/include/libpng16/png.h +3130 -0
  64. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/include/libpng16/pngconf.h +622 -0
  65. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/include/libpng16/pnglibconf.h +212 -0
  66. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/include/png.h +3130 -0
  67. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/include/pngconf.h +622 -0
  68. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/include/pnglibconf.h +212 -0
  69. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/lib/libpng.a +0 -0
  70. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/lib/libpng.la +41 -0
  71. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/lib/libpng16.a +0 -0
  72. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/lib/libpng16.la +41 -0
  73. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/lib/pkgconfig/libpng16.pc +11 -0
  74. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/share/man/man3/libpng.3 +6124 -0
  75. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/share/man/man3/libpngpf.3 +18 -0
  76. data/ports/x86_64-apple-darwin15.0.0/libpng/1.6.21/share/man/man5/png.5 +74 -0
  77. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/bin/cjpeg +0 -0
  78. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/bin/djpeg +0 -0
  79. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/bin/jpegtran +0 -0
  80. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/bin/rdjpgcom +0 -0
  81. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/bin/tjbench +0 -0
  82. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/bin/wrjpgcom +0 -0
  83. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/include/jconfig.h +71 -0
  84. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/include/jerror.h +320 -0
  85. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/include/jmorecfg.h +390 -0
  86. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/include/jpeglib.h +1185 -0
  87. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/include/turbojpeg.h +1538 -0
  88. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/lib/libjpeg.a +0 -0
  89. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/lib/libjpeg.la +41 -0
  90. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/lib/libturbojpeg.a +0 -0
  91. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/lib/libturbojpeg.la +41 -0
  92. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/doc/README +281 -0
  93. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/doc/README-mozilla.txt +194 -0
  94. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/doc/README-turbo.txt +363 -0
  95. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/doc/example.c +433 -0
  96. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/doc/libjpeg.txt +3015 -0
  97. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/doc/structure.txt +906 -0
  98. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/doc/usage.txt +649 -0
  99. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/doc/wizard.txt +211 -0
  100. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/man/man1/cjpeg.1 +352 -0
  101. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/man/man1/djpeg.1 +278 -0
  102. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/man/man1/jpegtran.1 +269 -0
  103. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/man/man1/rdjpgcom.1 +63 -0
  104. data/ports/x86_64-apple-darwin15.0.0/mozjpeg/3.1/share/man/man1/wrjpgcom.1 +103 -0
  105. data/ports/x86_64-apple-darwin15.0.0/nasm/2.12.01/bin/nasm +0 -0
  106. data/ports/x86_64-apple-darwin15.0.0/nasm/2.12.01/bin/ndisasm +0 -0
  107. data/ports/x86_64-apple-darwin15.0.0/nasm/2.12.01/share/man/man1/nasm.1 +429 -0
  108. data/ports/x86_64-apple-darwin15.0.0/nasm/2.12.01/share/man/man1/ndisasm.1 +120 -0
  109. data/ports/x86_64-apple-darwin15.0.0/optipng/0.7.6/bin/optipng +0 -0
  110. data/ports/x86_64-apple-darwin15.0.0/optipng/0.7.6/man/man1/optipng.1 +343 -0
  111. data/ports/x86_64-apple-darwin15.0.0/pngcrush/1.8.1/bin/pngcrush +0 -0
  112. data/ports/x86_64-apple-darwin15.0.0/pngquant/2.7.1/bin/pngquant +0 -0
  113. data/ports/x86_64-apple-darwin15.0.0/pngquant/2.7.1/share/man/man1/pngquant.1 +127 -0
  114. data/ports/x86_64-apple-darwin15.0.0/zlib/1.2.8/include/zconf.h +511 -0
  115. data/ports/x86_64-apple-darwin15.0.0/zlib/1.2.8/include/zlib.h +1768 -0
  116. data/ports/x86_64-apple-darwin15.0.0/zlib/1.2.8/lib/libz.a +0 -0
  117. data/ports/x86_64-apple-darwin15.0.0/zlib/1.2.8/lib/pkgconfig/zlib.pc +13 -0
  118. data/ports/x86_64-apple-darwin15.0.0/zlib/1.2.8/share/man/man3/zlib.3 +151 -0
  119. data/ports/zlib-1.2.8-x86_64-apple-darwin15.0.0.installed +0 -0
  120. metadata +234 -0
@@ -0,0 +1,40 @@
1
+ #!/bin/bash
2
+
3
+ # This script requires ladon, dcraw, exiftool, and jpeg-recompress
4
+ # Usage:
5
+ # $ cd path/to/photos
6
+ # $ jpeg-archive
7
+ # Compressed JPEGs are now in ./Comp/*
8
+
9
+ if [ $1 == '--help' ]; then
10
+ echo 'JPEG-Archive - Compress RAW and JPEG images in the current folder'
11
+ echo 'Usage: jpeg-archive [options]'
12
+ echo ''
13
+ echo 'Possible compression options:'
14
+ echo "`jpeg-recompress --help | tail -n+6`"
15
+ exit 255
16
+ fi
17
+
18
+ if [ $1 == '--version' ]; then
19
+ jpeg-recompress --version
20
+ exit 255
21
+ fi
22
+
23
+ set -e
24
+
25
+ # Cleanup old files
26
+ rm -rf Comp
27
+ rm -rf /tmp/comp
28
+
29
+ echo 'Converting RAW files...'
30
+ ladon -m /tmp/comp/RELDIR '**/*.+(cr2|nef|dng)' -- "dcraw -w -q 3 -c RELPATH | jpeg-recompress ${@:--q high} --ppm - /tmp/comp/RELDIR/BASENAME.jpg"
31
+
32
+ echo 'Copying EXIF data...'
33
+ ladon '**/*.+(cr2|nef|dng)' -- exiftool -overwrite_original -TagsFromFile RELPATH -all:all /tmp/comp/RELDIR/BASENAME.jpg
34
+
35
+ echo 'Recompressing JPEG files'
36
+ ladon -m /tmp/comp/RELDIR '**/*.jpg' -- jpeg-recompress ${@:--q high} RELPATH /tmp/comp/RELPATH
37
+
38
+ mv /tmp/comp Comp
39
+
40
+ echo 'Done! Compressed files are in the Comp folder.'
@@ -0,0 +1,186 @@
1
+ .TH JPEGOPTIM 1 "28 Nov 2014"
2
+ .UC 4
3
+ .SH NAME
4
+ jpegoptim \- utility to optimize/compress JPEG/JFIF files.
5
+
6
+
7
+ .SH SYNOPSIS
8
+ .B jpegoptim
9
+ [
10
+ .B options
11
+ ] [
12
+ .B filenames
13
+ ]
14
+
15
+ .SH DESCRIPTION
16
+ .I jpegoptim
17
+ is used to optimize/compress jpeg files. Program supports lossless
18
+ optimization, which is based on optimizing the Huffman tables. And
19
+ so called "lossy" optimization where in addition to optimizing Huffman
20
+ tables user can specify upperlimit for image quality.
21
+
22
+ NOTE! By default jpegoptim modifies the input files (if they are optimized),
23
+ to preserve original files use option \fB\-d\fR to specify alternate directory for saving the optimized files to.
24
+
25
+ Only normal files are optimized (symbolic links and special files are skipped).
26
+ Also, any other hard links to the file being optimized (as created using
27
+ .BR link (2))
28
+ are unaffected.
29
+
30
+
31
+ .SH OPTIONS
32
+ .PP
33
+ Options may be either the traditional POSIX one letter options, or the
34
+ GNU style long options. POSIX style options start with a single
35
+ ``\-'', while GNU long options start with ``\-\^\-''.
36
+
37
+ Options offered by
38
+ .I jpegoptim
39
+ are the following:
40
+ .TP 0.6i
41
+ .B -d<path>, --dest=<path>
42
+ Sets alternative destination directory where to save optimized files
43
+ (default is to overwrite the originals). Please note that unchanged files
44
+ won't be added to the destination directory. This means if the source
45
+ file can't be compressed, no file will be created in the destination path.
46
+ .TP 0.6i
47
+ .B -f, --force
48
+ Force optimization, even if the result would be larger than the original
49
+ file.
50
+ .TP 0.6i
51
+ .B -h, --help
52
+ Displays short usage information and exits.
53
+ .TP 0.6i
54
+ .B -m<quality>, --max=<quality>
55
+ Sets the maximum image quality factor (disables lossless optimization
56
+ mode, which is by default enabled). This option will reduce quality
57
+ of those source files that were saved using higher quality setting.
58
+ While files
59
+ that already have lower quality setting will be compressed using the
60
+ lossless optimization method.
61
+
62
+ Valid values for quality parameter are: 0 - 100
63
+ .TP 0.6i
64
+ .B -n, --noaction
65
+ Don't really optimize files, just print results.
66
+ .TP 0.6i
67
+ .B -S<size>, --size=<size>
68
+ Try to optimize file to given size (disables lossless
69
+ optimization mode). Target size is specified either in
70
+ kilobytes (1 - n) or as percentage (1% - 99%) of the original file size.
71
+ .TP 0.6i
72
+ .B -T<threshold>, --threshold=<threshold>
73
+ Keep the file unchanged if the compression gain is lower than the threshold (%).
74
+
75
+ Valid values for threshold are: 0 - 100
76
+ .TP 0.6i
77
+ .B -b, --csv
78
+ Print progress info in CSV format.
79
+ .TP 0.6i
80
+ .B -o, --overwrite
81
+ Overwrite target file even if it exists (when using -d option).
82
+ .TP 0.6i
83
+ .B -p, --preserve
84
+ Preserve file modification times.
85
+ .TP 0.6i
86
+ .B -P, --preserve-perms
87
+ Preserve file permissions (owner/group) by overwriting the original file. This is
88
+ slightly less safe than the default mode of operation (where new file is first saved
89
+ as temporary file and then renamed over the original file).
90
+ In this mode a backup of the original file is made with .jpegoptim.bak extension,
91
+ and this file is removed after the original file has been successfully replaced.
92
+ NOTE! if running jpegoptim as root there is generally no need to use this option,
93
+ as jpegoptim is able to preserve file permissions when run by root in default mode.
94
+ .TP 0.6i
95
+ .B -q, --quiet
96
+ Quiet mode.
97
+ .TP 0.6i
98
+ .B -t, --totals
99
+ Print totals after processing all files.
100
+ .TP 0.6i
101
+ .B -v, --verbose
102
+ Enables verbose mode (positively chatty).
103
+
104
+ .TP 0.6i
105
+ .B --all-normal
106
+ Force all output files to be non-progressive. Can be used to convert
107
+ all input files to progressive JPEGs when used with --force option.
108
+ .TP 0.6i
109
+ .B --all-progressive
110
+ Force all output files to be progressive. Can be used to convert
111
+ all normal (non-progressive) JPEGs input files to progressive when used with --force option.
112
+
113
+ .TP 0.6i
114
+ .B -s, --strip-all
115
+ Strip all markers from output file. (NOTE! by default
116
+ only Comment & Exif/IPTC/PhotoShop/ICC/XMP markers are kept, everything else is discarded).
117
+ Output JPEG still likely will contains one or two markers (JFIF and Adobe APP14) depending
118
+ on colorspace used in the image, as these markers are generated by the libjpeg encoder
119
+ automatically.
120
+ .TP 0.6i
121
+ .B --strip-none
122
+ Preserve "all" markers in the image. This will leave all markers untouched in the image,
123
+ except JFIF (APP0) and Adobe (APP14) markers as those get regenerated by the libjpeg library.
124
+ .TP 0.6i
125
+ .B --strip-com
126
+ Strip Comment (COM) markers from output file.
127
+ .TP 0.6i
128
+ .B --strip-exif
129
+ Strip EXIF markers from output file.
130
+ .TP 0.6i
131
+ .B --strip-iptc
132
+ Strip IPTC / Adobe Photoshop (APP13) markers from output file.
133
+ .TP 0.6i
134
+ .B --strip-icc
135
+ Strip ICC profiles from output file.
136
+ .TP 0.6i
137
+ .B --strip-xmp
138
+ Strip XMP profiles from output file.
139
+
140
+
141
+ .TP 0.6i
142
+ .B --stdout
143
+ Send output image to standard output. Note, if optimization didn't create smaller file
144
+ than the input file, then no output (image) is sent to standard output. (Option
145
+ .B -f
146
+ can be used to force output of image always, even if optimized image was not smaller than input).
147
+
148
+ .TP 0.6i
149
+ .B --stdin
150
+ Read input image from standard input. When this option is used then only one
151
+ image is read from standard output. Any (other) input files specified on command
152
+ line are ignored.
153
+ Note, if input file '-' is seen on command line then standard input is also assumed.
154
+
155
+ Currently this option will explicitly enable
156
+ .B -f
157
+ option, thus output image is always sent to standard output (even if no optimization was possible).
158
+
159
+
160
+
161
+ .SH BUGS
162
+ When using --size option, resulting file is not always exactly the
163
+ requested size. Workaround is to re-run jpegoptim on the same file again
164
+ which often will result file closer to target size.
165
+
166
+ .SH "SEE ALSO"
167
+ jpeginfo(1)
168
+
169
+ .SH AUTHOR
170
+ Timo Kokkonen <tjko@iki.fi>
171
+
172
+ .SH COPYING
173
+ Copyright (C) 1996-2015 Timo Kokkonen
174
+
175
+ This program is free software; you can redistribute it and/or modify
176
+ it under the terms of the GNU General Public License as published by
177
+ the Free Software Foundation; either version 2 of the License, or
178
+ (at your option) any later version.
179
+ This program is distributed in the hope that it will be useful,
180
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
181
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
182
+ GNU General Public License for more details.
183
+ You should have received a copy of the GNU General Public License
184
+ along with this program; if not, write to the Free Software
185
+ Foundation, Inc.,
186
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.