image_compressor_pack 1.0.0.1-amd64-freebsd-11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data/LICENSE.txt +22 -0
- data/lib/.paths.yml +12 -0
- data/lib/image_compressor_pack/dynamically_linked_recipes.yml +102 -0
- data/lib/image_compressor_pack/recipes.rb +42 -0
- data/lib/image_compressor_pack/statically_linked_recipes.yml +109 -0
- data/lib/image_compressor_pack/version.rb +3 -0
- data/lib/image_compressor_pack.rb +24 -0
- data/ports/advancecomp-1.22-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/gifsicle-1.88-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/jhead-3.0-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/jpeg-archive-2.1.1-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/jpegoptim-1.4.4-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/lcms2-2.8-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/libpng-1.6.26-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/mozjpeg-3.1-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/nasm-2.12.02-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/optipng-0.7.6-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/pngcrush-1.8.10-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/pngquant-2.8.0-x86_64-unknown-freebsd11.0.installed +0 -0
- data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/bin/advdef +0 -0
- data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/bin/advmng +0 -0
- data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/bin/advpng +0 -0
- data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/bin/advzip +0 -0
- data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/share/man/man1/advdef.1 +83 -0
- data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/share/man/man1/advmng.1 +197 -0
- data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/share/man/man1/advpng.1 +93 -0
- data/ports/x86_64-unknown-freebsd11.0/advancecomp/1.22/share/man/man1/advzip.1 +116 -0
- data/ports/x86_64-unknown-freebsd11.0/gifsicle/1.88/bin/gifsicle +0 -0
- data/ports/x86_64-unknown-freebsd11.0/gifsicle/1.88/share/man/man1/gifsicle.1 +1318 -0
- data/ports/x86_64-unknown-freebsd11.0/jhead/3.0/bin/jhead +0 -0
- data/ports/x86_64-unknown-freebsd11.0/jpeg-archive/2.1.1/bin/jpeg-archive +40 -0
- data/ports/x86_64-unknown-freebsd11.0/jpeg-archive/2.1.1/bin/jpeg-compare +0 -0
- data/ports/x86_64-unknown-freebsd11.0/jpeg-archive/2.1.1/bin/jpeg-hash +0 -0
- data/ports/x86_64-unknown-freebsd11.0/jpeg-archive/2.1.1/bin/jpeg-recompress +0 -0
- data/ports/x86_64-unknown-freebsd11.0/jpegoptim/1.4.4/bin/jpegoptim +0 -0
- data/ports/x86_64-unknown-freebsd11.0/jpegoptim/1.4.4/share/man/man1/jpegoptim.1 +186 -0
- data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/bin/linkicc +0 -0
- data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/bin/psicc +0 -0
- data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/bin/transicc +0 -0
- data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/include/lcms2.h +1903 -0
- data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/include/lcms2_plugin.h +665 -0
- data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/lib/liblcms2.a +0 -0
- data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/lib/liblcms2.la +41 -0
- data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/lib/pkgconfig/lcms2.pc +11 -0
- data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/share/man/man1/jpgicc.1 +122 -0
- data/ports/x86_64-unknown-freebsd11.0/lcms2/2.8/share/man/man1/tificc.1 +117 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/libpng16/png.h +3266 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/libpng16/pngconf.h +622 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/libpng16/pnglibconf.h +213 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/png.h +1 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/pngconf.h +1 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/include/pnglibconf.h +1 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/lib/libpng.a +1 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/lib/libpng.la +1 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/lib/libpng16.a +0 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/lib/libpng16.la +41 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/lib/pkgconfig/libpng16.pc +11 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/share/man/man3/libpng.3 +6179 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/share/man/man3/libpngpf.3 +18 -0
- data/ports/x86_64-unknown-freebsd11.0/libpng/1.6.26/share/man/man5/png.5 +74 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/cjpeg +0 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/djpeg +0 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/jpegtran +0 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/rdjpgcom +0 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/tjbench +0 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/bin/wrjpgcom +0 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/include/jconfig.h +71 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/include/jerror.h +320 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/include/jmorecfg.h +390 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/include/jpeglib.h +1185 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/include/turbojpeg.h +1538 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/lib/libjpeg.a +0 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/lib/libjpeg.la +41 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/lib/libturbojpeg.a +0 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/lib/libturbojpeg.la +41 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/README +281 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/README-mozilla.txt +194 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/README-turbo.txt +363 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/example.c +433 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/libjpeg.txt +3015 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/structure.txt +906 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/usage.txt +649 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/doc/wizard.txt +211 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/man/man1/cjpeg.1 +352 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/man/man1/djpeg.1 +278 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/man/man1/jpegtran.1 +269 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/man/man1/rdjpgcom.1 +63 -0
- data/ports/x86_64-unknown-freebsd11.0/mozjpeg/3.1/share/man/man1/wrjpgcom.1 +103 -0
- data/ports/x86_64-unknown-freebsd11.0/nasm/2.12.02/bin/nasm +0 -0
- data/ports/x86_64-unknown-freebsd11.0/nasm/2.12.02/bin/ndisasm +0 -0
- data/ports/x86_64-unknown-freebsd11.0/nasm/2.12.02/share/man/man1/nasm.1 +429 -0
- data/ports/x86_64-unknown-freebsd11.0/nasm/2.12.02/share/man/man1/ndisasm.1 +120 -0
- data/ports/x86_64-unknown-freebsd11.0/optipng/0.7.6/bin/optipng +0 -0
- data/ports/x86_64-unknown-freebsd11.0/optipng/0.7.6/man/man1/optipng.1 +343 -0
- data/ports/x86_64-unknown-freebsd11.0/pngcrush/1.8.10/bin/pngcrush +0 -0
- data/ports/x86_64-unknown-freebsd11.0/pngquant/2.8.0/bin/pngquant +0 -0
- data/ports/x86_64-unknown-freebsd11.0/pngquant/2.8.0/share/man/man1/pngquant.1 +127 -0
- data/ports/x86_64-unknown-freebsd11.0/zlib/1.2.8/include/zconf.h +511 -0
- data/ports/x86_64-unknown-freebsd11.0/zlib/1.2.8/include/zlib.h +1768 -0
- data/ports/x86_64-unknown-freebsd11.0/zlib/1.2.8/lib/libz.a +0 -0
- data/ports/x86_64-unknown-freebsd11.0/zlib/1.2.8/lib/pkgconfig/zlib.pc +13 -0
- data/ports/x86_64-unknown-freebsd11.0/zlib/1.2.8/share/man/man3/zlib.3 +151 -0
- data/ports/zlib-1.2.8-x86_64-unknown-freebsd11.0.installed +0 -0
- data.tar.gz.sig +0 -0
- metadata +251 -0
- metadata.gz.sig +0 -0
Binary file
|
@@ -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.'
|
Binary file
|
Binary file
|
@@ -0,0 +1,186 @@
|
|
1
|
+
.TH JPEGOPTIM 1 "15 Aug 2016"
|
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-2016 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.
|
Binary file
|
Binary file
|
Binary file
|