Hello,
Very interesting...
For information, I have tried a similar open tool into Ubuntu called "ladon" and -- jpeg-recompress (like jpegmini), and I have a similar result (with the JohnFredC original image file):
****************
https://github.com/gunta/image-recompre ... /README.md
This is a fork of jpeg-archive.
The planned differences are:
- Support for WebP
- Support for JPEG2000
- Support for PNG24
- Support for pngquant

************
https://github.com/danielgtaylor/ladon/issues/1
I've installed nodejs from the latest repo:
Code: Select all
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install python-software-properties python g++ make nodejs
Then ladon:
sudo npm install -g ladon
---
dowloaded JPEG-Archive 2.0.1:
https://github.com/danielgtaylor/jpeg-archive/releases
Code: Select all
ls -l
-rwxrwxrwx 1 1104 août 5 2014 jpeg-archive
-rwxrwxrwx 1 545419 août 5 2014 jpeg-compare
-rwxrwxrwx 1 526936 août 5 2014 jpeg-hash
-rwxrwxrwx 1 554200 août 5 2014 jpeg-recompress
--
If you are looking for an easy way to run these utilities in parallel over many files to utilize all CPU cores, please also download Ladon. You can then use the jpeg-archive command below or use ladon directly. Example:
Code: Select all
# Re-compress JPEGs and replace the originals
ladon "Photos/**/*.jpg" -- jpeg-recompress FULLPATH FULLPATH
# Re-compress JPEGs into the new directory 'Comp'
ladon -m Comp/RELDIR "Photos/**/*.jpg" -- jpeg-recompress FULLPATH Comp/RELPATH
then:
Code: Select all
$ ladon pano.Zoner.DSC03729-03731.cr.jpg -- jpeg-recompress FULLPATH FULLPATH
Metadata size is 3kb
ssim at q=67 (40 - 95): 0.999357
ssim at q=81 (68 - 95): 0.999803
ssim at q=88 (82 - 95): 0.999916
ssim at q=84 (82 - 87): 0.999868
ssim at q=86 (85 - 87): 0.999911
Final optimized ssim at q=85: 0.999832
New size is 19% of original (saved 5483 kb)
resultats:
Code: Select all
$ ls -l
-rwxrwxrwx 1 1382670 févr. 9 13:58 ladon_pano.Zoner.DSC03729-03731.cr.jpg
-rw-rw-r-- 1 6997953 févr. 9 13:20 pano.Zoner.DSC03729-03731.cr.jpg
-rw-rw-r-- 1 1107064 févr. 9 13:20 pano.Zoner.DSC03729-03731.cr_mini.jpg
... So almost the same size and quality
Ladon:
Code: Select all
$ identify -verbose ladon_pano.Zoner.DSC03729-03731.cr.jpg
Image: ladon_pano.Zoner.DSC03729-03731.cr.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 5828x2727+0+0
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 0 (0)
max: 255 (1)
mean: 103.681 (0.406591)
standard deviation: 55.8025 (0.218833)
kurtosis: -0.528224
skewness: 0.759734
Green:
min: 0 (0)
max: 255 (1)
mean: 124.594 (0.488604)
standard deviation: 44.5005 (0.174512)
kurtosis: -0.288165
skewness: 0.639896
Blue:
min: 0 (0)
max: 255 (1)
mean: 142.375 (0.558333)
standard deviation: 42.2234 (0.165582)
kurtosis: -0.012254
skewness: -0.340954
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 123.55 (0.484509)
standard deviation: 47.8784 (0.187758)
kurtosis: -0.248854
skewness: 0.2516
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: JPEG
Intensity: Undefined
Compose: Over
Page geometry: 5828x2727+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 85
Orientation: Undefined
Properties:
comment: Compressed by jpeg-recompress
date:create: 2015-02-09T13:58:56+01:00
date:modify: 2015-02-09T13:58:13+01:00
exif:Compression: 6
exif:DateTime: 2011:08:30 13:07:19
exif:ExifOffset: 58
exif:JPEGInterchangeFormat: 106
exif:JPEGInterchangeFormatLength: 3207
jpeg:colorspace: 2
jpeg:sampling-factor: 2x2,1x1,1x1
signature: 722eff19222876ae80ffc91a1a8a1e54e5f8e7c88455524d865f1fd6e4a28e45
Profiles:
Profile-exif: 3319 bytes
Artifacts:
filename: ladon_pano.Zoner.DSC03729-03731.cr.jpg
verbose: true
Tainted: False
Filesize: 1.383MB
Number pixels: 15.89M
Pixels per second: 29.99MB
User time: 0.520u
Elapsed time: 0:01.530
Version: ImageMagick 6.8.8-7 Q16 x86_64 2014-02-24 http://www.imagemagick.org
Jpegmini:
Code: Select all
$ identify -verbose pano.Zoner.DSC03729-03731.cr_mini.jpg
Image: pano.Zoner.DSC03729-03731.cr_mini.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 5828x2727+0+0
Resolution: 300x300
Print size: 19.4267x9.09
Units: PixelsPerInch
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 0 (0)
max: 255 (1)
mean: 103.58 (0.406196)
standard deviation: 55.8395 (0.218979)
kurtosis: -0.527076
skewness: 0.760466
Green:
min: 0 (0)
max: 255 (1)
mean: 124.685 (0.48896)
standard deviation: 44.492 (0.174478)
kurtosis: -0.287001
skewness: 0.639697
Blue:
min: 0 (0)
max: 255 (1)
mean: 142.286 (0.557984)
standard deviation: 42.2691 (0.165761)
kurtosis: -0.0111703
skewness: -0.343133
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 123.517 (0.48438)
standard deviation: 47.9036 (0.187857)
kurtosis: -0.247445
skewness: 0.250364
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 5828x2727+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 78
Orientation: Undefined
Properties:
comment: Optimized by JPEGmini-www.jpegmini.com
date:create: 2015-02-09T13:20:10+01:00
date:modify: 2015-02-09T13:20:10+01:00
exif:Compression: 6
exif:DateTime: 2011:08:30 13:07:19
exif:ExifOffset: 58
exif:JPEGInterchangeFormat: 106
exif:JPEGInterchangeFormatLength: 3207
jpeg:colorspace: 2
jpeg:sampling-factor: 2x2,1x1,1x1
signature: ccc6607970da713060fddaca37458acda6838e454cb2bab160958d49935237df
Profiles:
Profile-exif: 3319 bytes
Artifacts:
filename: pano.Zoner.DSC03729-03731.cr_mini.jpg
verbose: true
Tainted: False
Filesize: 1.107MB
Number pixels: 15.89M
Pixels per second: 35.32MB
User time: 0.450u
Elapsed time: 0:01.450
Version: ImageMagick 6.8.8-7 Q16 x86_64 2014-02-24 http://www.imagemagick.org
Original:
Code: Select all
identify -verbose pano.Zoner.DSC03729-03731.cr.jpg
Image: pano.Zoner.DSC03729-03731.cr.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 5828x2727+0+0
Resolution: 300x300
Print size: 19.4267x9.09
Units: PixelsPerInch
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 0 (0)
max: 255 (1)
mean: 103.651 (0.406474)
standard deviation: 55.8306 (0.218943)
kurtosis: -0.530576
skewness: 0.758706
Green:
min: 0 (0)
max: 255 (1)
mean: 124.62 (0.488707)
standard deviation: 44.5171 (0.174577)
kurtosis: -0.286806
skewness: 0.639895
Blue:
min: 0 (0)
max: 255 (1)
mean: 142.311 (0.558082)
standard deviation: 42.2422 (0.165656)
kurtosis: -0.0259004
skewness: -0.336156
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 123.527 (0.484421)
standard deviation: 47.9 (0.187843)
kurtosis: -0.250349
skewness: 0.252067
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: JPEG
Intensity: Undefined
Compose: Over
Page geometry: 5828x2727+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 99
Orientation: Undefined
Properties:
date:create: 2015-02-09T13:20:03+01:00
date:modify: 2015-02-09T13:20:03+01:00
exif:Compression: 6
exif:DateTime: 2011:08:30 13:07:19
exif:ExifOffset: 58
exif:JPEGInterchangeFormat: 106
exif:JPEGInterchangeFormatLength: 3207
jpeg:colorspace: 2
jpeg:sampling-factor: 1x1,1x1,1x1
signature: eebcdfa865493d3b7c3340f88949b1b03e67884a114b814153c5dca2785b0bb7
Profiles:
Profile-exif: 3319 bytes
Artifacts:
filename: pano.Zoner.DSC03729-03731.cr.jpg
verbose: true
Tainted: False
Filesize: 6.998MB
Number pixels: 15.89M
Pixels per second: 18.92MB
User time: 0.820u
Elapsed time: 0:01.840
Version: ImageMagick 6.8.8-7 Q16 x86_64 2014-02-24 http://www.imagemagick.org
So: Approximative jpeg compression : original at 99% & 6.99MO _ ladon 85% & 1.38MO(19% of original size) _ jpegmini 78% & 1.1MO(15% of original size.