Special kind of JPEG optimization

Manuel said on 04/01/2018

Hey there Cédric, I would love to read your opinion on this topic: https://forum.doom9.org/showthread.php?t=160577

This is not a feature request, I just wanna know what you think about it.

Thank you.

cédric (dev) said on 04/02/2018

I just wanna know what you think about it

this could probably work on some samples, but if you trust the butteraugli metric on this specific example, what is done in pingo could offer better estimation and smaller filesize. if speed is not an issue, see my Guetzli binary

butteraugli comparison
filename butteraugli filesize options
36680.png - 473 831 bytes -
36682.jpg 2.361962 86 482 bytes -
36680-90.jpg 2.252246 81 665 bytes pingo -jpgquality=90
36680-89.jpg 2.292196 75 539 bytes pingo -jpgquality=89
36680-e.jpg 2.038043 74 915 bytes eguetzli -quality=90

alternative

if you want to target specific compression for each files, it could make sense to try another method, especially if you plan to use it for Web

  • find the focus point in the image
  • use a filter that enhances details in this area
  • decrease the quality level

this can be easily done with most of image editor. if you ask people to pick the image which looks better, some of them will probably choose enhanced despite it is the lower quality

focus and optimization
original quality 95 quality 80 (enhanced)
pens.png pens-95.jpg pens-80-e.jpg
173 098 bytes 41 736 bytes 17 219 bytes
original - pingo's default (enhanced)
36680.png 36682.jpg 36680-pingo-e.jpg
473 831 bytes 86 482 bytes 67 915 bytes

cédric (dev) said on 04/25/2018

i added -jpgfilter in 0.96z8 as an experimental feature. for now it is try & see — it does more or less what i said here. it could be used with some values from 0 to 10 (jpgfilter=N). notes for pingo:

  • it is not well tested nor optimized
  • it does not seem to be very compliant with some metrics
  • it does not fit on some samples (maybe this can be improved later)

overview

the purpose of this experiment is to provide better perceptual quality while reducing filesize. the process time is barely the same, most of the time a bit faster for -jpgfilter. overview:

  • dssim metric: -jpgfilter is worse than normal process
  • butteraugli metric: better or worse according to sample — seems to be better from quality 65
  • my eyes: -jpgfilter is most of the time better but could have issue on some samples
  • the filesize difference decrease according to the quality level
  • the default of -jpgfilter is used in those results (=4) on this this corpus

results

overview
test normal jpgfilter
quality 80
better butteraugli 21 10
better dssim 31 0
savings 17828.54 KB 18098.00 KB
quality 75
better butteraugli 19 12
better dssim 31 0
savings 18221.75 KB 18366.51 KB
quality 70
better butteraugli 18 13
better dssim 31 0
savings 18471.34 KB 18597.66 KB
quality 65
better butteraugli 13 18
better dssim 31 0
savings 18687.59 KB 18774.71 KB
quality 60
better butteraugli 12 19
better dssim 31 0
savings 18852.91 KB 18918.85 KB
quality 55
better butteraugli 11 20
better dssim 31 0
savings 18988.15 KB 19037.35 KB
quality 50
better butteraugli 10 21
better dssim 31 0
savings 19099.67 KB 19150.43 KB

quality 80

-jpgquality=80 — better butteraugli score: 10/31
bees.png
test normal jpgfilter
dssim 0.00118645 0.00172543
butteraugli 2.670267 2.764863
filesize 23847 bytes 21265 bytes
bench.png
test normal jpgfilter
dssim 0.00264206 0.00373521
butteraugli 2.552317 2.854715
filesize 119635 bytes 110858 bytes
bench2.png
test normal jpgfilter
dssim 0.00178082 0.00257376
butteraugli 4.125165 4.534243
filesize 39435 bytes 35608 bytes
bicycles.png
test normal jpgfilter
dssim 0.00150388 0.00207101
butteraugli 2.905613 2.962672
filesize 163894 bytes 148705 bytes
blue-rose.png
test normal jpgfilter
dssim 0.00123617 0.00186984
butteraugli 2.967869 2.945996
filesize 61026 bytes 54013 bytes
brake-light.png
test normal jpgfilter
dssim 0.00249688 0.00315901
butteraugli 4.176231 4.084319
filesize 168747 bytes 153290 bytes
cloth.png
test normal jpgfilter
dssim 0.00133948 0.00183732
butteraugli 3.056699 2.938370
filesize 203087 bytes 183228 bytes
geranium.png
test normal jpgfilter
dssim 0.00156678 0.00233994
butteraugli 2.218405 2.567879
filesize 75945 bytes 66394 bytes
geranium2.png
test normal jpgfilter
dssim 0.00121966 0.00180195
butteraugli 2.228994 2.599844
filesize 28925 bytes 25801 bytes
green.png
test normal jpgfilter
dssim 0.00087908 0.00147956
butteraugli 2.286619 2.446916
filesize 46581 bytes 41934 bytes
green-rose.png
test normal jpgfilter
dssim 0.00145628 0.00214627
butteraugli 2.762632 2.781733
filesize 59758 bytes 52844 bytes
hand.png
test normal jpgfilter
dssim 0.00331051 0.00409860
butteraugli 2.829125 3.132227
filesize 35998 bytes 30178 bytes
lichen.png
test normal jpgfilter
dssim 0.00189700 0.00266524
butteraugli 2.703797 2.740298
filesize 59181 bytes 55098 bytes
minerology.png
test normal jpgfilter
dssim 0.00221802 0.00286020
butteraugli 3.350028 3.462073
filesize 126138 bytes 115173 bytes
out-of-focus.png
test normal jpgfilter
dssim 0.00134033 0.00221494
butteraugli 2.427239 2.953294
filesize 72533 bytes 65024 bytes
pimpinelli.png
test normal jpgfilter
dssim 0.00142916 0.00224019
butteraugli 2.665672 3.144576
filesize 65895 bytes 58005 bytes
pink-flower.png
test normal jpgfilter
dssim 0.00113264 0.00189753
butteraugli 2.291670 2.399873
filesize 52054 bytes 45604 bytes
port.png
test normal jpgfilter
dssim 0.00155358 0.00263374
butteraugli 3.268484 3.347294
filesize 53967 bytes 48533 bytes
rainbow.png
test normal jpgfilter
dssim 0.00311219 0.00384624
butteraugli 2.889476 2.810267
filesize 45001 bytes 39922 bytes
red-flowers.png
test normal jpgfilter
dssim 0.00260382 0.00349347
butteraugli 3.231133 2.998888
filesize 105975 bytes 97197 bytes
red-room.png
test normal jpgfilter
dssim 0.00236659 0.00323148
butteraugli 4.524017 4.396949
filesize 153691 bytes 139970 bytes
red-rose.png
test normal jpgfilter
dssim 0.00128287 0.00194947
butteraugli 2.875622 3.157919
filesize 58614 bytes 51733 bytes
rgb.png
test normal jpgfilter
dssim 0.00173546 0.00240922
butteraugli 3.508907 3.369678
filesize 87307 bytes 79524 bytes
station.png
test normal jpgfilter
dssim 0.00175569 0.00253406
butteraugli 3.189357 3.493535
filesize 262994 bytes 240355 bytes
stp.png
test normal jpgfilter
dssim 0.00193034 0.00316589
butteraugli 4.967515 4.707355
filesize 71010 bytes 63585 bytes
stp2.png
test normal jpgfilter
dssim 0.00146741 0.00224569
butteraugli 3.262402 3.332510
filesize 204532 bytes 185737 bytes
vflower.png
test normal jpgfilter
dssim 0.00134403 0.00212667
butteraugli 3.696352 3.679995
filesize 40152 bytes 35757 bytes
white-yellow.png
test normal jpgfilter
dssim 0.00137106 0.00203275
butteraugli 2.649690 2.676937
filesize 55339 bytes 49927 bytes
wollerau.png
test normal jpgfilter
dssim 0.00194851 0.00283317
butteraugli 3.759364 3.632320
filesize 169710 bytes 154849 bytes
yellow.png
test normal jpgfilter
dssim 0.00111763 0.00158070
butteraugli 2.806933 3.030432
filesize 100827 bytes 90046 bytes
yellow2.png
test normal jpgfilter
dssim 0.00190806 0.00260729
butteraugli 2.643535 2.960073
filesize 43178 bytes 38892 bytes

quality 75

-jpgquality=75 — better butteraugli score: 12/31
bees.png
test normal jpgfilter
dssim 0.00154123 0.00202018
butteraugli 2.729315 2.718392
filesize 20667 bytes 19209 bytes
bench.png
test normal jpgfilter
dssim 0.00364623 0.00451351
butteraugli 3.123902 3.260012
filesize 102006 bytes 97879 bytes
bench2.png
test normal jpgfilter
dssim 0.00221803 0.00295267
butteraugli 3.992404 5.094363
filesize 33458 bytes 31451 bytes
bicycles.png
test normal jpgfilter
dssim 0.00193060 0.00244163
butteraugli 3.257823 3.411346
filesize 142621 bytes 134285 bytes
blue-rose.png
test normal jpgfilter
dssim 0.00156866 0.00219052
butteraugli 3.206551 3.354445
filesize 52248 bytes 47881 bytes
brake-light.png
test normal jpgfilter
dssim 0.00318406 0.00370017
butteraugli 5.622106 4.547495
filesize 144007 bytes 136277 bytes
cloth.png
test normal jpgfilter
dssim 0.00175347 0.00217858
butteraugli 3.029361 2.950817
filesize 177127 bytes 165636 bytes
geranium.png
test normal jpgfilter
dssim 0.00195192 0.00272226
butteraugli 2.847940 2.862396
filesize 64037 bytes 58336 bytes
geranium2.png
test normal jpgfilter
dssim 0.00159187 0.00211755
butteraugli 2.404733 2.727323
filesize 25051 bytes 23207 bytes
green.png
test normal jpgfilter
dssim 0.00113137 0.00171068
butteraugli 2.358860 2.458338
filesize 40924 bytes 38197 bytes
green-rose.png
test normal jpgfilter
dssim 0.00181531 0.00247524
butteraugli 2.946115 2.939453
filesize 51116 bytes 46867 bytes
hand.png
test normal jpgfilter
dssim 0.00392196 0.00466495
butteraugli 3.390424 3.529177
filesize 28408 bytes 25748 bytes
lichen.png
test normal jpgfilter
dssim 0.00275998 0.00333419
butteraugli 3.202521 3.011149
filesize 50295 bytes 48254 bytes
minerology.png
test normal jpgfilter
dssim 0.00289419 0.00342573
butteraugli 4.210552 4.001217
filesize 108085 bytes 102280 bytes
out-of-focus.png
test normal jpgfilter
dssim 0.00166467 0.00254564
butteraugli 2.632451 2.743330
filesize 62790 bytes 58544 bytes
pimpinelli.png
test normal jpgfilter
dssim 0.00179004 0.00257918
butteraugli 2.711088 2.987116
filesize 56328 bytes 51962 bytes
pink-flower.png
test normal jpgfilter
dssim 0.00149976 0.00218426
butteraugli 2.373931 2.650602
filesize 44104 bytes 40709 bytes
port.png
test normal jpgfilter
dssim 0.00199435 0.00303262
butteraugli 3.169032 3.109739
filesize 46463 bytes 43390 bytes
rainbow.png
test normal jpgfilter
dssim 0.00377450 0.00445999
butteraugli 3.012970 3.029620
filesize 37514 bytes 35009 bytes
red-flowers.png
test normal jpgfilter
dssim 0.00362094 0.00423967
butteraugli 3.200741 3.324687
filesize 89972 bytes 86007 bytes
red-room.png
test normal jpgfilter
dssim 0.00313023 0.00384181
butteraugli 4.609674 4.312723
filesize 131000 bytes 124028 bytes
red-rose.png
test normal jpgfilter
dssim 0.00160880 0.00225859
butteraugli 3.461168 3.310841
filesize 49923 bytes 45910 bytes
rgb.png
test normal jpgfilter
dssim 0.00226799 0.00285929
butteraugli 3.733934 3.938480
filesize 75424 bytes 71312 bytes
station.png
test normal jpgfilter
dssim 0.00232061 0.00297132
butteraugli 3.426006 3.526936
filesize 227551 bytes 216592 bytes
stp.png
test normal jpgfilter
dssim 0.00251953 0.00359112
butteraugli 4.903790 4.585803
filesize 60495 bytes 56504 bytes
stp2.png
test normal jpgfilter
dssim 0.00188862 0.00262775
butteraugli 3.391629 3.468874
filesize 176272 bytes 166834 bytes
vflower.png
test normal jpgfilter
dssim 0.00167523 0.00246177
butteraugli 3.830188 3.610612
filesize 34594 bytes 32089 bytes
white-yellow.png
test normal jpgfilter
dssim 0.00167560 0.00233204
butteraugli 2.978299 3.055394
filesize 48291 bytes 45258 bytes
wollerau.png
test normal jpgfilter
dssim 0.00254418 0.00331417
butteraugli 4.183837 5.381595
filesize 146538 bytes 138200 bytes
yellow.png
test normal jpgfilter
dssim 0.00144990 0.00186514
butteraugli 3.386319 3.573684
filesize 87526 bytes 81148 bytes
yellow2.png
test normal jpgfilter
dssim 0.00232352 0.00301269
butteraugli 3.003350 2.797580
filesize 37490 bytes 35096 bytes

quality 70

-jpgquality=70 — better butteraugli score: 13/31
bees.png
test normal jpgfilter
dssim 0.00186335 0.00242506
butteraugli 2.979187 2.935858
filesize 18617 bytes 17302 bytes
bench.png
test normal jpgfilter
dssim 0.00457985 0.00539599
butteraugli 3.389039 3.428980
filesize 90093 bytes 87260 bytes
bench2.png
test normal jpgfilter
dssim 0.00262954 0.00337123
butteraugli 4.545265 4.738157
filesize 29726 bytes 27825 bytes
bicycles.png
test normal jpgfilter
dssim 0.00229922 0.00287289
butteraugli 3.535071 3.557111
filesize 129145 bytes 121560 bytes
blue-rose.png
test normal jpgfilter
dssim 0.00188157 0.00250663
butteraugli 3.492186 3.503094
filesize 46564 bytes 43183 bytes
brake-light.png
test normal jpgfilter
dssim 0.00378761 0.00431732
butteraugli 5.719620 5.270215
filesize 128234 bytes 121909 bytes
cloth.png
test normal jpgfilter
dssim 0.00211391 0.00258229
butteraugli 3.610613 3.763276
filesize 160208 bytes 150379 bytes
geranium.png
test normal jpgfilter
dssim 0.00233947 0.00304385
butteraugli 2.996235 3.205659
filesize 56529 bytes 51857 bytes
geranium2.png
test normal jpgfilter
dssim 0.00195397 0.00253111
butteraugli 2.838598 2.923512
filesize 22518 bytes 20954 bytes
green.png
test normal jpgfilter
dssim 0.00140239 0.00203820
butteraugli 2.546746 2.854274
filesize 37236 bytes 34798 bytes
green-rose.png
test normal jpgfilter
dssim 0.00216730 0.00278988
butteraugli 3.091144 3.351761
filesize 45584 bytes 42247 bytes
hand.png
test normal jpgfilter
dssim 0.00448821 0.00510953
butteraugli 3.456287 3.844065
filesize 24604 bytes 22316 bytes
lichen.png
test normal jpgfilter
dssim 0.00348973 0.00405318
butteraugli 3.723079 3.610437
filesize 44537 bytes 42755 bytes
minerology.png
test normal jpgfilter
dssim 0.00349736 0.00409968
butteraugli 4.422539 4.326913
filesize 96605 bytes 91388 bytes
out-of-focus.png
test normal jpgfilter
dssim 0.00203652 0.00282490
butteraugli 2.773370 2.922170
filesize 56838 bytes 53121 bytes
pimpinelli.png
test normal jpgfilter
dssim 0.00215636 0.00294089
butteraugli 3.111909 3.094932
filesize 50319 bytes 46684 bytes
pink-flower.png
test normal jpgfilter
dssim 0.00181490 0.00257404
butteraugli 2.726675 3.250137
filesize 39500 bytes 36289 bytes
port.png
test normal jpgfilter
dssim 0.00241418 0.00353933
butteraugli 3.602627 3.657700
filesize 41551 bytes 38500 bytes
rainbow.png
test normal jpgfilter
dssim 0.00442494 0.00519272
butteraugli 3.027282 3.327976
filesize 32976 bytes 30627 bytes
red-flowers.png
test normal jpgfilter
dssim 0.00449148 0.00511259
butteraugli 4.078639 4.232880
filesize 79842 bytes 76620 bytes
red-room.png
test normal jpgfilter
dssim 0.00378089 0.00452086
butteraugli 5.039325 4.973624
filesize 116765 bytes 110810 bytes
red-rose.png
test normal jpgfilter
dssim 0.00194784 0.00258517
butteraugli 3.592815 3.970961
filesize 44630 bytes 41340 bytes
rgb.png
test normal jpgfilter
dssim 0.00271909 0.00333972
butteraugli 4.065533 4.319373
filesize 67841 bytes 64234 bytes
station.png
test normal jpgfilter
dssim 0.00281960 0.00349855
butteraugli 4.244788 4.076927
filesize 205121 bytes 193940 bytes
stp.png
test normal jpgfilter
dssim 0.00305228 0.00414269
butteraugli 5.576825 5.062417
filesize 53709 bytes 49930 bytes
stp2.png
test normal jpgfilter
dssim 0.00232412 0.00306583
butteraugli 4.749696 4.108056
filesize 158778 bytes 150573 bytes
vflower.png
test normal jpgfilter
dssim 0.00200182 0.00271302
butteraugli 3.830948 3.811125
filesize 31115 bytes 29043 bytes
white-yellow.png
test normal jpgfilter
dssim 0.00199922 0.00266246
butteraugli 3.428015 3.516755
filesize 43826 bytes 41244 bytes
wollerau.png
test normal jpgfilter
dssim 0.00307711 0.00390661
butteraugli 5.307492 5.111993
filesize 130997 bytes 124004 bytes
yellow.png
test normal jpgfilter
dssim 0.00175190 0.00224409
butteraugli 4.152384 3.936730
filesize 78802 bytes 72890 bytes
yellow2.png
test normal jpgfilter
dssim 0.00273748 0.00341289
butteraugli 3.151882 2.981878
filesize 33938 bytes 31819 bytes

quality 65

-jpgquality=65 — better butteraugli score: 18/31
bees.png
test normal jpgfilter
dssim 0.00226030 0.00283898
butteraugli 3.246710 3.293240
filesize 16810 bytes 15847 bytes
bench.png
test normal jpgfilter
dssim 0.00564851 0.00629087
butteraugli 3.788506 3.722876
filesize 80513 bytes 78889 bytes
bench2.png
test normal jpgfilter
dssim 0.00307522 0.00379609
butteraugli 4.554332 4.954412
filesize 26250 bytes 25084 bytes
bicycles.png
test normal jpgfilter
dssim 0.00276631 0.00330527
butteraugli 3.711978 3.726500
filesize 116958 bytes 111839 bytes
blue-rose.png
test normal jpgfilter
dssim 0.00224646 0.00290339
butteraugli 4.047765 3.849174
filesize 41999 bytes 39480 bytes
brake-light.png
test normal jpgfilter
dssim 0.00444750 0.00494778
butteraugli 5.951340 5.645955
filesize 115097 bytes 111117 bytes
cloth.png
test normal jpgfilter
dssim 0.00257606 0.00305542
butteraugli 3.933769 3.505404
filesize 145443 bytes 138174 bytes
geranium.png
test normal jpgfilter
dssim 0.00271820 0.00356570
butteraugli 3.387496 3.345176
filesize 50429 bytes 47056 bytes
geranium2.png
test normal jpgfilter
dssim 0.00236109 0.00294121
butteraugli 2.848401 3.048952
filesize 20411 bytes 19198 bytes
green.png
test normal jpgfilter
dssim 0.00168660 0.00235570
butteraugli 2.884171 2.864280
filesize 34049 bytes 32225 bytes
green-rose.png
test normal jpgfilter
dssim 0.00248715 0.00323296
butteraugli 3.429101 3.630749
filesize 41061 bytes 38524 bytes
hand.png
test normal jpgfilter
dssim 0.00494039 0.00575995
butteraugli 3.768530 4.138997
filesize 21535 bytes 20028 bytes
lichen.png
test normal jpgfilter
dssim 0.00431492 0.00475389
butteraugli 4.151806 4.056553
filesize 39510 bytes 38478 bytes
minerology.png
test normal jpgfilter
dssim 0.00418449 0.00471924
butteraugli 4.640943 4.425828
filesize 86478 bytes 82973 bytes
out-of-focus.png
test normal jpgfilter
dssim 0.00233944 0.00324645
butteraugli 3.445369 3.210980
filesize 51676 bytes 48834 bytes
pimpinelli.png
test normal jpgfilter
dssim 0.00251435 0.00340640
butteraugli 3.234968 3.152792
filesize 45522 bytes 42649 bytes
pink-flower.png
test normal jpgfilter
dssim 0.00218616 0.00299024
butteraugli 2.928347 3.238426
filesize 35328 bytes 32817 bytes
port.png
test normal jpgfilter
dssim 0.00296471 0.00403650
butteraugli 3.792963 3.892613
filesize 36985 bytes 35061 bytes
rainbow.png
test normal jpgfilter
dssim 0.00517337 0.00598031
butteraugli 3.185471 3.487844
filesize 28942 bytes 27201 bytes
red-flowers.png
test normal jpgfilter
dssim 0.00547011 0.00597715
butteraugli 4.504383 4.317772
filesize 71284 bytes 69301 bytes
red-room.png
test normal jpgfilter
dssim 0.00451089 0.00523756
butteraugli 5.118505 4.853882
filesize 104630 bytes 100678 bytes
red-rose.png
test normal jpgfilter
dssim 0.00229508 0.00300171
butteraugli 3.821026 4.183808
filesize 40261 bytes 37750 bytes
rgb.png
test normal jpgfilter
dssim 0.00328229 0.00389174
butteraugli 4.447592 4.577260
filesize 61311 bytes 58836 bytes
station.png
test normal jpgfilter
dssim 0.00344074 0.00410317
butteraugli 4.340462 4.225389
filesize 184045 bytes 177308 bytes
stp.png
test normal jpgfilter
dssim 0.00364688 0.00496503
butteraugli 6.241568 5.809203
filesize 47202 bytes 44674 bytes
stp2.png
test normal jpgfilter
dssim 0.00277219 0.00350509
butteraugli 5.507964 5.440466
filesize 143716 bytes 138123 bytes
vflower.png
test normal jpgfilter
dssim 0.00229701 0.00305920
butteraugli 3.842406 3.788447
filesize 28178 bytes 26655 bytes
white-yellow.png
test normal jpgfilter
dssim 0.00233790 0.00305560
butteraugli 3.432377 3.510437
filesize 40045 bytes 38040 bytes
wollerau.png
test normal jpgfilter
dssim 0.00372472 0.00452259
butteraugli 6.072948 5.923405
filesize 117747 bytes 113033 bytes
yellow.png
test normal jpgfilter
dssim 0.00213610 0.00261580
butteraugli 4.594734 4.440480
filesize 71056 bytes 66943 bytes
yellow2.png
test normal jpgfilter
dssim 0.00314987 0.00388845
butteraugli 3.453715 3.453911
filesize 30841 bytes 29281 bytes

quality 60

-jpgquality=60 — better butteraugli score: 19/31
bees.png
test normal jpgfilter
dssim 0.00269529 0.00317872
butteraugli 3.555060 3.481092
filesize 15413 bytes 14604 bytes
bench.png
test normal jpgfilter
dssim 0.00662199 0.00715138
butteraugli 4.026356 3.846490
filesize 73099 bytes 72049 bytes
bench2.png
test normal jpgfilter
dssim 0.00357295 0.00423704
butteraugli 4.841609 4.595462
filesize 23827 bytes 22888 bytes
bicycles.png
test normal jpgfilter
dssim 0.00323134 0.00367204
butteraugli 3.678283 3.707916
filesize 107468 bytes 103590 bytes
blue-rose.png
test normal jpgfilter
dssim 0.00264041 0.00324772
butteraugli 4.033214 4.091823
filesize 38429 bytes 36480 bytes
brake-light.png
test normal jpgfilter
dssim 0.00512090 0.00550686
butteraugli 6.336621 5.977458
filesize 105220 bytes 102106 bytes
cloth.png
test normal jpgfilter
dssim 0.00308134 0.00349911
butteraugli 3.957786 3.764180
filesize 133830 bytes 128481 bytes
geranium.png
test normal jpgfilter
dssim 0.00324880 0.00391843
butteraugli 3.398778 3.503956
filesize 45810 bytes 43078 bytes
geranium2.png
test normal jpgfilter
dssim 0.00278549 0.00333507
butteraugli 2.912249 3.131868
filesize 18765 bytes 17779 bytes
green.png
test normal jpgfilter
dssim 0.00203281 0.00264865
butteraugli 2.975141 3.212805
filesize 31532 bytes 29924 bytes
green-rose.png
test normal jpgfilter
dssim 0.00294105 0.00356272
butteraugli 3.496128 3.556983
filesize 37674 bytes 35666 bytes
hand.png
test normal jpgfilter
dssim 0.00552033 0.00612107
butteraugli 4.039591 4.283665
filesize 19459 bytes 18371 bytes
lichen.png
test normal jpgfilter
dssim 0.00505927 0.00543191
butteraugli 4.374755 3.836994
filesize 35777 bytes 34983 bytes
minerology.png
test normal jpgfilter
dssim 0.00484055 0.00529971
butteraugli 5.354280 4.796366
filesize 78952 bytes 76399 bytes
out-of-focus.png
test normal jpgfilter
dssim 0.00276930 0.00363915
butteraugli 3.299583 3.172674
filesize 47460 bytes 45196 bytes
pimpinelli.png
test normal jpgfilter
dssim 0.00301294 0.00380996
butteraugli 3.356439 3.248978
filesize 41657 bytes 39686 bytes
pink-flower.png
test normal jpgfilter
dssim 0.00264407 0.00335502
butteraugli 3.092249 3.354881
filesize 32036 bytes 30128 bytes
port.png
test normal jpgfilter
dssim 0.00347515 0.00459541
butteraugli 3.931535 3.866022
filesize 33764 bytes 32242 bytes
rainbow.png
test normal jpgfilter
dssim 0.00598919 0.00660864
butteraugli 3.771294 3.959723
filesize 25837 bytes 24600 bytes
red-flowers.png
test normal jpgfilter
dssim 0.00645495 0.00677408
butteraugli 4.558156 4.612653
filesize 64824 bytes 63357 bytes
red-room.png
test normal jpgfilter
dssim 0.00524063 0.00587332
butteraugli 6.465276 5.654505
filesize 95335 bytes 92318 bytes
red-rose.png
test normal jpgfilter
dssim 0.00274120 0.00338518
butteraugli 4.168479 4.299420
filesize 36872 bytes 34910 bytes
rgb.png
test normal jpgfilter
dssim 0.00382317 0.00439772
butteraugli 5.185127 4.509006
filesize 56397 bytes 54452 bytes
station.png
test normal jpgfilter
dssim 0.00407985 0.00454755
butteraugli 4.888771 4.269419
filesize 168405 bytes 163740 bytes
stp.png
test normal jpgfilter
dssim 0.00439308 0.00528565
butteraugli 7.048793 6.187297
filesize 42492 bytes 40593 bytes
stp2.png
test normal jpgfilter
dssim 0.00329980 0.00402066
butteraugli 6.296873 5.872046
filesize 131993 bytes 127913 bytes
vflower.png
test normal jpgfilter
dssim 0.00271918 0.00338095
butteraugli 4.457849 4.128713
filesize 25967 bytes 24868 bytes
white-yellow.png
test normal jpgfilter
dssim 0.00275560 0.00334868
butteraugli 3.821500 3.504242
filesize 36911 bytes 35465 bytes
wollerau.png
test normal jpgfilter
dssim 0.00439135 0.00505092
butteraugli 6.130834 6.125498
filesize 107132 bytes 103745 bytes
yellow.png
test normal jpgfilter
dssim 0.00251361 0.00298186
butteraugli 4.599061 4.292714
filesize 65249 bytes 61685 bytes
yellow2.png
test normal jpgfilter
dssim 0.00368213 0.00430799
butteraugli 3.557812 3.633322
filesize 28432 bytes 27200 bytes

quality 55

-jpgquality=55 — better butteraugli score: 20/31
bees.png
test normal jpgfilter
dssim 0.00307277 0.00364439
butteraugli 3.656267 3.546510
filesize 14240 bytes 13583 bytes
bench.png
test normal jpgfilter
dssim 0.00762114 0.00805921
butteraugli 4.218863 4.283229
filesize 66872 bytes 66112 bytes
bench2.png
test normal jpgfilter
dssim 0.00398542 0.00466937
butteraugli 5.419631 5.440890
filesize 21760 bytes 21138 bytes
bicycles.png
test normal jpgfilter
dssim 0.00361988 0.00412029
butteraugli 3.826564 4.120429
filesize 99600 bytes 96513 bytes
blue-rose.png
test normal jpgfilter
dssim 0.00299532 0.00359499
butteraugli 4.458826 4.156986
filesize 35615 bytes 33957 bytes
brake-light.png
test normal jpgfilter
dssim 0.00574045 0.00608277
butteraugli 6.779189 6.070127
filesize 96931 bytes 95002 bytes
cloth.png
test normal jpgfilter
dssim 0.00356945 0.00399770
butteraugli 3.981640 4.124745
filesize 124590 bytes 120319 bytes
geranium.png
test normal jpgfilter
dssim 0.00359964 0.00434642
butteraugli 3.278677 3.567997
filesize 41954 bytes 39786 bytes
geranium2.png
test normal jpgfilter
dssim 0.00318541 0.00374102
butteraugli 3.249431 3.473276
filesize 17347 bytes 16576 bytes
green.png
test normal jpgfilter
dssim 0.00235433 0.00295585
butteraugli 3.336010 3.547877
filesize 29361 bytes 28071 bytes
green-rose.png
test normal jpgfilter
dssim 0.00327203 0.00396925
butteraugli 3.747906 4.005426
filesize 34847 bytes 33149 bytes
hand.png
test normal jpgfilter
dssim 0.00593345 0.00654705
butteraugli 4.312777 4.568368
filesize 17926 bytes 16992 bytes
lichen.png
test normal jpgfilter
dssim 0.00580083 0.00608716
butteraugli 4.518665 4.150350
filesize 32602 bytes 32266 bytes
minerology.png
test normal jpgfilter
dssim 0.00543024 0.00583609
butteraugli 6.086093 5.173560
filesize 72859 bytes 70997 bytes
out-of-focus.png
test normal jpgfilter
dssim 0.00315771 0.00408543
butteraugli 3.606090 3.443532
filesize 44009 bytes 42043 bytes
pimpinelli.png
test normal jpgfilter
dssim 0.00337870 0.00410635
butteraugli 3.605253 3.349694
filesize 38860 bytes 37099 bytes
pink-flower.png
test normal jpgfilter
dssim 0.00300776 0.00377161
butteraugli 3.446532 3.808783
filesize 29437 bytes 27931 bytes
port.png
test normal jpgfilter
dssim 0.00397002 0.00498045
butteraugli 4.232736 4.139194
filesize 30983 bytes 29879 bytes
rainbow.png
test normal jpgfilter
dssim 0.00661894 0.00718334
butteraugli 3.632366 3.901380
filesize 23499 bytes 22634 bytes
red-flowers.png
test normal jpgfilter
dssim 0.00737003 0.00767900
butteraugli 4.608663 4.555859
filesize 59375 bytes 58487 bytes
red-room.png
test normal jpgfilter
dssim 0.00594517 0.00658674
butteraugli 6.639132 5.990359
filesize 87534 bytes 85668 bytes
red-rose.png
test normal jpgfilter
dssim 0.00307934 0.00372398
butteraugli 4.808872 4.670794
filesize 34159 bytes 32358 bytes
rgb.png
test normal jpgfilter
dssim 0.00433360 0.00483504
butteraugli 5.377532 4.859104
filesize 52253 bytes 50740 bytes
station.png
test normal jpgfilter
dssim 0.00461510 0.00507075
butteraugli 4.884889 4.690032
filesize 155669 bytes 152865 bytes
stp.png
test normal jpgfilter
dssim 0.00481866 0.00597128
butteraugli 7.063607 6.949832
filesize 38700 bytes 37604 bytes
stp2.png
test normal jpgfilter
dssim 0.00376683 0.00440019
butteraugli 6.403835 6.077614
filesize 122405 bytes 119617 bytes
vflower.png
test normal jpgfilter
dssim 0.00305424 0.00374228
butteraugli 4.370498 4.297584
filesize 24265 bytes 23278 bytes
white-yellow.png
test normal jpgfilter
dssim 0.00306790 0.00376218
butteraugli 4.048471 3.772083
filesize 34389 bytes 33128 bytes
wollerau.png
test normal jpgfilter
dssim 0.00492672 0.00558232
butteraugli 5.923607 5.823277
filesize 98784 bytes 96398 bytes
yellow.png
test normal jpgfilter
dssim 0.00287110 0.00334306
butteraugli 4.841212 4.458617
filesize 60246 bytes 57564 bytes
yellow2.png
test normal jpgfilter
dssim 0.00409569 0.00472675
butteraugli 4.120186 3.646792
filesize 26466 bytes 25405 bytes

quality 50

-jpgquality=50 — better butteraugli score: 21/31
bees.png
test normal jpgfilter
dssim 0.00352294 0.00415320
butteraugli 3.840489 3.688763
filesize 13230 bytes 12594 bytes
bench.png
test normal jpgfilter
dssim 0.00861083 0.00909616
butteraugli 4.614693 4.327157
filesize 61649 bytes 60750 bytes
bench2.png
test normal jpgfilter
dssim 0.00441808 0.00521164
butteraugli 5.775674 5.554559
filesize 20080 bytes 19518 bytes
bicycles.png
test normal jpgfilter
dssim 0.00407264 0.00467450
butteraugli 4.108043 4.498715
filesize 93218 bytes 89790 bytes
blue-rose.png
test normal jpgfilter
dssim 0.00333156 0.00406624
butteraugli 4.700706 4.386742
filesize 33237 bytes 31635 bytes
brake-light.png
test normal jpgfilter
dssim 0.00635606 0.00680742
butteraugli 7.155509 6.413151
filesize 90098 bytes 87796 bytes
cloth.png
test normal jpgfilter
dssim 0.00407130 0.00461560
butteraugli 4.534884 4.475499
filesize 116657 bytes 111733 bytes
geranium.png
test normal jpgfilter
dssim 0.00403735 0.00494704
butteraugli 3.342379 3.567378
filesize 38842 bytes 36758 bytes
geranium2.png
test normal jpgfilter
dssim 0.00363046 0.00426601
butteraugli 3.349719 3.623642
filesize 16163 bytes 15405 bytes
green.png
test normal jpgfilter
dssim 0.00267417 0.00336591
butteraugli 3.491207 3.807156
filesize 27507 bytes 26243 bytes
green-rose.png
test normal jpgfilter
dssim 0.00367549 0.00443137
butteraugli 4.307653 4.411035
filesize 32449 bytes 30773 bytes
hand.png
test normal jpgfilter
dssim 0.00635787 0.00726559
butteraugli 4.884158 4.837533
filesize 16651 bytes 15872 bytes
lichen.png
test normal jpgfilter
dssim 0.00650924 0.00686709
butteraugli 5.025486 4.421785
filesize 30208 bytes 29734 bytes
minerology.png
test normal jpgfilter
dssim 0.00600961 0.00652524
butteraugli 6.962163 5.172259
filesize 67842 bytes 65880 bytes
out-of-focus.png
test normal jpgfilter
dssim 0.00362580 0.00460739
butteraugli 3.778668 3.694485
filesize 40939 bytes 39272 bytes
pimpinelli.png
test normal jpgfilter
dssim 0.00372475 0.00467183
butteraugli 3.835081 3.389291
filesize 36348 bytes 34775 bytes
pink-flower.png
test normal jpgfilter
dssim 0.00342973 0.00432927
butteraugli 3.469044 4.098899
filesize 27368 bytes 25986 bytes
port.png
test normal jpgfilter
dssim 0.00448038 0.00564513
butteraugli 4.555439 4.620355
filesize 28762 bytes 27603 bytes
rainbow.png
test normal jpgfilter
dssim 0.00718229 0.00798590
butteraugli 3.725342 4.280729
filesize 21730 bytes 20867 bytes
red-flowers.png
test normal jpgfilter
dssim 0.00823912 0.00865752
butteraugli 4.612590 4.629938
filesize 55008 bytes 53926 bytes
red-room.png
test normal jpgfilter
dssim 0.00668658 0.00742343
butteraugli 7.020821 6.480754
filesize 81104 bytes 78802 bytes
red-rose.png
test normal jpgfilter
dssim 0.00344041 0.00419589
butteraugli 4.348922 4.715265
filesize 31671 bytes 30153 bytes
rgb.png
test normal jpgfilter
dssim 0.00481718 0.00545661
butteraugli 6.107757 5.159738
filesize 48783 bytes 47291 bytes
station.png
test normal jpgfilter
dssim 0.00520036 0.00579099
butteraugli 5.055996 4.659783
filesize 145458 bytes 142201 bytes
stp.png
test normal jpgfilter
dssim 0.00545932 0.00672794
butteraugli 7.177244 6.711620
filesize 35956 bytes 34742 bytes
stp2.png
test normal jpgfilter
dssim 0.00418200 0.00501471
butteraugli 6.314074 5.929998
filesize 114592 bytes 111580 bytes
vflower.png
test normal jpgfilter
dssim 0.00337370 0.00424184
butteraugli 4.444540 4.438762
filesize 22709 bytes 21772 bytes
white-yellow.png
test normal jpgfilter
dssim 0.00346553 0.00411242
butteraugli 4.596075 3.934126
filesize 32292 bytes 31129 bytes
wollerau.png
test normal jpgfilter
dssim 0.00549308 0.00636995
butteraugli 6.584102 6.020153
filesize 91831 bytes 89644 bytes
yellow.png
test normal jpgfilter
dssim 0.00325893 0.00379951
butteraugli 4.720314 4.657432
filesize 56180 bytes 53438 bytes
yellow2.png
test normal jpgfilter
dssim 0.00461312 0.00537240
butteraugli 4.072378 4.045567
filesize 24773 bytes 23699 bytes

imo

results depend in how much you trust dssim, butteraugli, your metric or your eyes — none of them are perfect. perhaps this could have room for improvement, but i am not sure yet if the whole process is a good idea or not

cédric (dev) said on 05/07/2018

in 0.96z9, -jpgfilter works with JPG as input

comment this