JPEG XL

Info

rules 57
github 35276
reddit 647

JPEG XL

tools 4225
website 1655
adoption 20712
image-compression-forum 0

General chat

welcome 3810
introduce-yourself 291
color 1414
photography 3435
other-codecs 23765
on-topic 24923
off-topic 22701

Voice Channels

General 2147

Archived

bot-spam 4380

benchmarks

_wb_
2021-06-26 04:31:32
Why do you say too early to use?
Orum
2021-06-26 04:55:08
all modern codecs take years to mature
_wb_
2021-06-26 05:01:28
Sure but mature old codecs are still worse than immature new ones, and new ones are not going to mature if everyone waits to use them until they are mature
Orum
2021-06-26 05:12:09
Depends on what you're trying to achieve. For archival purposes, I'd only consider mature lossless codecs, which is why I haven't yet converted my pngs/webps over to jxls yet
fab
2021-06-26 05:12:42
Lossless jpeg xl is what needs to improve only 42 percent reduction with s 9 -e 3
2021-06-26 05:13:01
and 21 minute of encoding for 6 mpx
2021-06-26 05:13:15
did only single core of i3 330m
2021-06-26 05:13:30
i could do with five minute a image
Scope
2021-06-26 05:19:28
The maturity of codecs without their mass use is impossible, there are codecs/encoders that are 20-30 years old, but just the years of existence does not mean anything
Deleted User
Orum Depends on what you're trying to achieve. For archival purposes, I'd only consider mature lossless codecs, which is why I haven't yet converted my pngs/webps over to jxls yet
2021-06-26 05:34:47
> which is why I haven't yet converted my pngs/webps over to jxls yet I haven't done that yet only because: 1. Neither Google Photos not Samsung Gallery on Android support JXL. 2. Lots of my recent screenshots are two-layer and `cjxl` doesn't support separate Modular layers yet.
_wb_
2021-06-26 06:00:09
Two-layer screenshots? I didn't know that exists
2021-06-26 06:00:16
How does that work?
Deleted User
2021-06-26 06:40:44
I'm actually taking two screenshots. Here's the "desired output" screenshot:
2021-06-26 06:40:57
And here's the "helper" screenshot:
fab
2021-06-26 06:42:55
encode with libjxl v0.3.7-169-g1f7445a win_x64 2021.06.26 and do -s 9 -d 1 --use_new_heuristics
2021-06-26 06:43:06
is perfectly visually lossless
2021-06-26 06:43:13
it gives 0.636 bpp files
2021-06-26 06:43:49
you could use normal mode who has less quality and compression but more resistant to generation loss
2021-06-26 06:44:03
although they aren't test for that
2021-06-26 06:44:31
and jon didn't say if cloudinary has the commit newer than that
Deleted User
2021-06-26 06:49:32
You don't know what I mean
fab
2021-06-26 06:52:31
i can't use photoshop
Deleted User
2021-06-26 06:53:10
Sometimes I'm not as lucky because the username (marked red) and Stories' status bar (marked blue) are laid over meaningful content.
2021-06-26 06:54:56
I want `cjxl` to create a difference layer (like this):
2021-06-26 07:02:43
And make an overlay over the "helper" image in `kAdd` mode, thus creating multi-layered end result:
2021-06-26 07:03:43
(simulated with GIMP)
raysar
2021-06-26 07:07:17
Comparison on -d3 on dslr face portrait 900px: PNG>jxl3.7>jxl new It's i bit better.
Deleted User
2021-06-26 07:11:32
JXL old:
2021-06-26 07:12:22
JXL new:
2021-06-26 07:12:55
Well, some ringing was eliminated, but so was part of that hair...
2021-06-26 07:13:34
Any ideas for spline detection? πŸ˜‰
fab
2021-06-26 07:22:01
which build
improver
2021-06-26 07:54:07
arguably hair in old is so distorted that i wouldnt say it's worse
2021-06-26 07:55:15
also, you didn't post filesizes
raysar
2021-06-26 08:08:02
The same comparison @d 1.5 (resolution 1440*960px) It's a great denoiser like avif πŸ˜„
monad
Sometimes I'm not as lucky because the username (marked red) and Stories' status bar (marked blue) are laid over meaningful content.
2021-06-26 08:08:14
Why not download the original image rather than taking a screenshot?
Deleted User
monad Why not download the original image rather than taking a screenshot?
2021-06-26 08:26:33
GIMP somehow can't import APNG animation as separate layers (it can do that with GIF and WebP).
monad
2021-06-26 08:38:33
I mean download from the image host (looks like Instagram).
diskorduser
2021-06-26 08:39:19
Instagram app doesn't support downloading images afaik
monad
2021-06-26 08:41:40
Not in the UI, but the URL is in the page source. You can use a browser extension to download them for you.
2021-06-26 08:42:42
Wait, mobile app? never used it myself.
Deleted User
monad I mean download from the image host (looks like Instagram).
2021-06-26 08:44:54
> browsing Instagram stories from a laptop
raysar
2021-06-26 08:44:58
xiaomi android browser can one clic download instagram picture πŸ˜‰ But it's rarely easy to download fast an picture in a webservice. Screenshot is very often use for users. That's why recompression is very important.
Scope
Jyrki Alakuijala Scope, did you ever try delta palette?
2021-06-26 08:48:29
Lossy-palette test (`-s 9`), then the same size with VarDCT (with new changes), but as I said the size with Lossy-palette is quite large, much larger than past comparisons and the same VarDCT results from `-d 0.4` to about `-d 0.9`, so pretty high quality 1. Source 2. Lossy-palette 3. VarDCT
2021-06-26 08:48:36
2021-06-26 08:48:42
2021-06-26 08:48:48
2021-06-26 08:48:54
2021-06-26 08:48:59
2021-06-26 08:49:03
2021-06-26 08:49:08
2021-06-26 08:49:12
2021-06-26 08:49:16
2021-06-26 08:49:22
2021-06-26 08:49:27
2021-06-26 08:49:31
2021-06-26 08:50:28
2021-06-26 08:50:35
2021-06-26 08:50:39
2021-06-26 08:50:44
2021-06-26 08:50:49
2021-06-26 08:50:53
2021-06-26 08:50:58
2021-06-26 08:51:03
2021-06-26 08:51:06
2021-06-26 08:54:29
For Lossy-palette there is noticeable dithering/banding in some places and for VarDCT even at this quality there are still ringing artifacts (but with a very careful comparison or zooming)
raysar
2021-06-26 08:55:05
We can see "posterisation" on lossy-palette, the dct version is amazing :p
Scope
2021-06-26 08:58:13
Yes, but some things can be fixed in the LP
Jyrki Alakuijala
raysar The same comparison @d 1.5 (resolution 1440*960px) It's a great denoiser like avif πŸ˜„
2021-06-26 09:26:18
looks like it got better in the new (but not a day-and-night difference) -- the difference seems to be bigger in anime than in photographs
raysar
2021-06-26 09:27:35
Yes there are only better decision on some area, but it's visually better πŸ™‚
Jyrki Alakuijala
Scope For Lossy-palette there is noticeable dithering/banding in some places and for VarDCT even at this quality there are still ringing artifacts (but with a very careful comparison or zooming)
2021-06-26 09:38:39
We need to improve on gradients of the lossy palette. Possibly also sharp transitions are slightly pixelized -- perhaps 'gaborish' would help there πŸ˜›
fab
2021-06-27 07:49:32
downloadgram.com for downloading in instagram
2021-06-27 07:49:52
or this https://ingramer.com/it/downloader/instagram/stories/
2021-06-27 07:56:58
obviously i recommend 4kstogram 3.4.2
2021-06-27 07:57:24
but you need to a have a crack/patch
lithium
2021-06-27 08:23:22
https://discord.com/channels/794206087879852103/803645746661425173/858379219444432906 Continue this issue, How to call this situation?(artifact, blocking, ringing?)
improver
2021-06-27 10:43:07
correct.
fab
lithium https://discord.com/channels/794206087879852103/803645746661425173/858379219444432906 Continue this issue, How to call this situation?(artifact, blocking, ringing?)
2021-06-27 11:19:06
blocking
2021-06-27 11:19:12
jxl is all blocking
_wb_
2021-06-27 02:51:54
I only see blocking in lossy modular. In vardct I mostly see ringing.
2021-06-27 02:53:44
In avif I mostly see blur, smearing and banding.
Scope
Scope The same images size with: <https://github.com/libjxl/libjxl/pull/221>
2021-06-27 09:55:22
<https://github.com/libjxl/libjxl/pull/231>
2021-06-27 09:55:38
2021-06-27 09:55:39
2021-06-27 09:55:40
2021-06-27 09:55:41
2021-06-27 09:55:41
2021-06-27 09:55:42
2021-06-27 09:55:43
2021-06-27 09:59:21
Ringing artifacts are not much different overall, rather they have moved to other areas, but in my opinion the quality has become a little closer to the original with less distortion
improver
2021-06-27 11:01:37
with which ones these can be compared against
Scope
2021-06-27 11:15:08
I do quotes on past comparisons at the beginning
improver
2021-06-27 11:25:53
oh.
raysar
2021-06-28 02:49:24
I create a reddit post to show the upgrade since 0.3.7 It's a 400% zoom on -d 1.1 jxl 225kB, but to have the same file size on 0.3.7 i need to use -d 1.2 You need to open apng in browser. (I do the same comparison on half the size, ak -d 4, and at this quality it's not better than 0.3.7 on manga style)
improver
2021-06-28 03:41:48
significantly better tbh
Jyrki Alakuijala
2021-06-29 06:07:04
❀️
2021-06-29 06:07:17
In the mean time I made three more changes
2021-06-29 06:07:28
at least the last one tries to address ringing in anime
2021-06-29 06:07:29
https://github.com/libjxl/libjxl/pull/246
2021-06-29 06:07:53
I consider it a very very small improvement, but I have more ideas...
Scope
Scope <https://github.com/libjxl/libjxl/pull/231>
2021-06-29 07:01:50
<https://github.com/libjxl/libjxl/pull/246>
2021-06-29 07:03:40
2021-06-29 07:03:40
2021-06-29 07:03:41
2021-06-29 07:03:42
2021-06-29 07:03:42
2021-06-29 07:03:42
2021-06-29 07:03:43
2021-06-29 07:04:44
Slightly less ringing and less distorted outlines
fab
2021-06-29 07:05:50
the last girl looks better in whole image
2021-06-29 07:06:18
2021-06-29 07:06:35
how many butteraugli has this on -d 0.901 -s 9
2021-06-29 07:06:41
scope can do a test?
2021-06-29 07:07:01
just to see if it small images changed
2021-06-29 07:07:22
can you just encode the image
Scope
2021-06-29 07:15:09
But, I do not recommend using `-s 9`
fab
Scope But, I do not recommend using `-s 9`
2021-06-29 07:16:37
is really -d 0.901
2021-06-29 07:16:41
or are you joking
2021-06-29 07:16:53
what speed is that?
Scope
2021-06-29 07:17:06
`-s 9 -d 0.901`
fab
2021-06-29 07:17:33
now i can't absolutely see anything because there is night
2021-06-29 07:18:01
can you send the jxl
2021-06-29 07:18:07
the one you encoded
Scope
2021-06-29 07:18:30
fab
2021-06-29 07:19:03
are you joking
2021-06-29 07:19:05
only 6 kb
2021-06-29 07:19:38
ok i will measure the butteraugli
2021-06-29 07:21:54
2021-06-29 07:22:20
0.9621142149 3-norm: 0.579190
2021-06-29 07:22:37
how to interpret this data?
2021-06-29 07:22:44
should i compress more?
2021-06-29 07:22:56
is the output too many colours?
Cool Doggo
2021-06-29 08:01:42
i believe if the first value is <= 1 then it is (supposed to be) visually lossless
_wb_
2021-06-29 08:03:20
Yes
2021-06-29 08:04:32
Well 1 means you might just barely see it when flipping between the two and watching from 900 pixels distance
eddie.zato
2021-06-30 03:42:20
I built `cjxl` with the old commit before Jyrki's improvements and ran tests. The target file size is taken from `avifenc`.
2021-06-30 03:42:34
```Powershell PS > avifenc 0.png 1.avif -j 4 -r f -y 444 --min 12 --max 12 -s 4; avifdec 1.avif 1.png PS > (ls 1.avif).Length 57875 PS > .\cjxl_4a4782e 0.png 2.jxl -e 8 --epf=3 --target_size=57875; djxl 2.jxl 2.png Encoding [VarDCT, d1.298, kitten], 4 threads. Compressed to 57950 bytes (0.615 bpp). PS > cjxl 0.png 3.jxl -e 8 --epf=3 --target_size=57875; djxl 3.jxl 3.png Encoding [VarDCT, d1.201, kitten], 4 threads. Compressed to 57764 bytes (0.613 bpp). PS > butteraugli 0.png 1.png; butteraugli 0.png 2.png; butteraugli 0.png 3.png 2.1854407787 3-norm: 0.612597 1.4679248333 3-norm: 0.601586 1.4060662985 3-norm: 0.580481 PS > ssimulacra 0.png 1.png; ssimulacra 0.png 2.png; ssimulacra 0.png 3.png 0.00605603 0.01000992 0.00989381 ```
2021-06-30 03:43:12
Enlarged crop from original PNG
2021-06-30 03:43:25
from AVIF
2021-06-30 03:43:42
from JXL before improvements
2021-06-30 03:43:57
from JXL with last commit
lithium
2021-06-30 03:18:18
Dark area anime image test, avif look like image still look good, but some background detail is lost. jxl also look good, and can keep more background detail. // not latest libjxl commits > jpeg q92 444 142KB to avif q15 444 50.9KB, > avifenc --min 0 --max 63 -d 10 -s 4 -j 12 -a end-usage=q -a cq-level=15 -a color:aq-mode=1 -a color:enable-chroma-deltaq=1 -a color:enable-dnl-denoising=0 -a color:denoise-noise-level=5 // not latest libavif commits > jpeg q92 444 142KB to jxl d1.0 51.1KB, > cjxl -j -d 1.0 -s 8
2021-06-30 03:18:43
original
2021-06-30 03:18:58
avif-q15
2021-06-30 03:19:07
jxl-d1.0
improver
2021-06-30 03:35:33
what are exact file sizes
2021-06-30 03:36:42
50.9KB for avif and 51.1KB for jxl if im reading them right
2021-06-30 03:37:02
tbh i usually take screenshots w png
2021-06-30 03:39:17
which version/commit of jxl? theres been quite a bit of changes for anime kind of stuff lately
2021-06-30 03:40:32
jxl preserves background grain better, but has much more ringing around black lines on red dress
lithium
2021-06-30 03:45:15
> libjxl 17fc76048a9bf237513c8a01bcdd952b2cdf823d > libavif Version: 0.9.0 (aom [enc/dec]:3.1.0-13-g3bd281799)
2021-06-30 03:46:31
not latest libjxl commits
improver
2021-06-30 03:46:33
it would be interesting to test with up to date encoder. there's been a lot of ringing-related changes after that commit
2021-06-30 03:46:54
ill try encoding it
2021-06-30 03:49:01
2021-06-30 03:49:25
56K (53563)
lithium
2021-06-30 03:49:28
Kate Shadow is so cute πŸ˜›
improver
2021-06-30 03:49:28
hmm it ended up bigger
2021-06-30 03:49:46
either that or we are using different K units
2021-06-30 03:50:14
could you give exact byte counts for your images, K is a bit confusing. but looks a bit bigger either way
_wb_
2021-06-30 03:50:36
KB = kilobyte = 1000 byte KiB = kibibyte = 1024 byte
2021-06-30 03:51:05
I don't know in what world 53563 bytes can be 56 K though
improver
2021-06-30 03:52:12
except that K is often done with 1024 bytes anyway...
2021-06-30 03:53:00
wait did `du -sh` report disk allocated size..?
2021-06-30 03:53:30
``` --apparent-size print apparent sizes, rather than disk usage; although the apparent size is usually smaller, it may be larger due to holes in ('sparse') files, internal fragmentation, indirect blocks, and the like ``` ughh why do they make everything complicated
2021-06-30 03:53:52
53K
lithium
2021-06-30 03:54:00
// not latest libjxl commits > jxl 52,371 // not latest libavif commits > avif 52,213
improver
2021-06-30 03:54:16
yeah so a bit bigger. thx
2021-06-30 03:54:48
and i also don't really see much improvement in ringing :<
2021-06-30 03:55:12
maybe my stuff for viewing is not precise enough or im expecting too much
lithium
2021-06-30 03:56:57
I think probably have more vardct imporve for anime in next few week.πŸ™‚
raysar
improver and i also don't really see much improvement in ringing :<
2021-06-30 05:24:30
Which quality you have visual ringing? -d 1.2 have near zero ringing. The picture with red girl is a jpg with so many ringing ...
improver
2021-06-30 06:19:33
I'm comparing both my and lee's encode against original
2021-06-30 06:19:49
and I see more noise around black lines in both of them than in original
2021-06-30 06:20:22
arguably, original shouldve been png and it would be more fair comparision then, as I suspect original has a bit of noise there too and re-encoding makes it worse
fab
2021-06-30 07:17:37
i'll send a deblocked image
2021-06-30 07:18:29
2021-06-30 07:18:48
here's you wasted space only on visual blocking
2021-06-30 07:19:18
2021-06-30 07:20:45
basically you sent a super blocked image
2021-06-30 07:21:12
try to compress the deblocked one
2021-06-30 07:21:22
i'll decode to png with jxl
2021-06-30 07:23:19
here's the image
2021-06-30 07:23:20
2021-06-30 07:37:38
raysar we know it loses quality the same
raysar
improver arguably, original shouldve been png and it would be more fair comparision then, as I suspect original has a bit of noise there too and re-encoding makes it worse
2021-06-30 07:37:40
Test with a manga picture without artifact, or a picture with a real noise.
fab
2021-06-30 07:38:01
but at least the source is better in this way
2021-06-30 07:38:19
though 80% blocking i would delete this image
2021-06-30 07:38:33
not giving any space in my disk
2021-06-30 07:40:58
if you focus on the roses on the head you can still see blocking on my image
improver ill try encoding it
2021-06-30 07:43:41
59222
improver
raysar Test with a manga picture without artifact, or a picture with a real noise.
2021-06-30 07:43:52
not my source, it's Lee's
raysar
improver not my source, it's Lee's
2021-06-30 07:44:15
test with your favorite pictures, or i can send you pictures if you want.
fab
2021-06-30 07:44:50
d 1.0 has too much blurring
2021-06-30 07:45:10
the deblocked i did with that s 1 and old encoder
2021-06-30 07:45:13
is more truthful
2021-06-30 07:46:12
green red brown
improver
raysar test with your favorite pictures, or i can send you pictures if you want.
2021-06-30 07:46:29
I was just curious to expand a bit on Lee's benchmark so yeah. I'm way too lazy to do full testing against avif as I have no clue about usage of its options, and I'm way too lazy to compare jxl revisions as I use aur package
fab
2021-06-30 07:46:32
look at the colors
2021-06-30 07:46:42
but the image is bad point
raysar
improver I was just curious to expand a bit on Lee's benchmark so yeah. I'm way too lazy to do full testing against avif as I have no clue about usage of its options, and I'm way too lazy to compare jxl revisions as I use aur package
2021-06-30 07:47:45
Ok, it's just than avif is a denoiser, so encoding a ringing jpg in avif will enhence the file XD
fab
2021-06-30 07:47:56
i'd say the blocked i did is acceptable
2021-06-30 07:48:12
but not the best you can do with 54 kb
improver
2021-06-30 07:48:15
indeed lol
fab
2021-06-30 07:48:21
it need a better png
improver
2021-06-30 07:49:26
pngs i have are more fitting for lossless encoding tbh. should i try anyway?
2021-06-30 07:50:04
or should i just downsize some super resolution jpegs and consider them suitable at that point idk idk
lithium
2021-06-30 07:51:03
To be honestly, It's hard request every source image is lossless png... this sample from japanese official site. > https://shadowshouse-anime.com/story/?id=01
improver
2021-06-30 07:52:08
yeah but screenshots should be .png if you want to use them for benchmarking later
fab
2021-06-30 07:52:24
the d 1 is not bad
improver
2021-06-30 07:52:54
what encoder it was
2021-06-30 07:54:18
i see ringing in her shirt
improver
2021-06-30 07:54:43
up-to-date cjxl
2021-06-30 07:55:26
but i think that noise was because jpeg was a bit noisy there and jxl re-encoding made it worse i already said all of this plz keep context in ur head
raysar
2021-06-30 07:55:38
Example on an other dark picture, defauld jxl -d 1
2021-06-30 07:55:50
original
2021-06-30 07:56:11
lithium
improver and I see more noise around black lines in both of them than in original
2021-06-30 07:56:53
I believe jxl can make better quality on contrast sharp edges(black sharp lines) and smooth have gradient area.
raysar
lithium I believe jxl can make better quality on contrast sharp edges(black sharp lines) and smooth have gradient area.
2021-06-30 07:58:24
Yes it's good on very high contrast with modular encoding πŸ˜„
fab
2021-06-30 07:58:30
this worsened with deblocking
improver
raysar
2021-06-30 07:58:32
plz upload jxl->png too for comparision reasons
fab
2021-06-30 07:58:40
i think is a png
raysar
improver plz upload jxl->png too for comparision reasons
2021-06-30 07:59:07
chrome read jxl you only need to open it ...
improver
2021-06-30 07:59:15
I don't use chrome
2021-06-30 07:59:22
and it'd result in download first anyway
2021-06-30 07:59:40
because I think discord wont recognize it as image and wont set mime right
raysar
2021-06-30 07:59:51
jxl -d 1
fab
2021-06-30 07:59:59
2021-06-30 08:01:00
in this case the deblocked image looks bad because the original source is a q 100 image
2021-06-30 08:01:14
in lossless png
2021-06-30 08:01:27
or is a jpg either?
2021-06-30 08:02:45
i expected better from jxl
2021-06-30 08:02:53
image look similar
2021-06-30 08:03:02
not too added details
2021-06-30 08:03:50
do s9 please when encoding
2021-06-30 08:05:25
keep in mind that i encoded with s 1
2021-06-30 08:05:31
2021-06-30 08:05:33
proof
improver
2021-06-30 08:06:10
> avifenc --min 0 --max 63 -d 10 -s 4 -j 12 -a end-usage=q -a cq-level=15 -a color:aq-mode=1 -a color:enable-chroma-deltaq=1 -a color:enable-dnl-denoising=0 -a color:denoise-noise-level=5 uhh is that anime-optimized avifenc settings or what
lithium
raysar Yes it's good on very high contrast with modular encoding πŸ˜„
2021-06-30 08:06:12
lossy modular Q95 can get good quality, but sometime can't get better file size, I think vardct also can make it, just need wait some quality improve.
fab
2021-06-30 08:06:32
can you add some avif
2021-06-30 08:06:36
at lower file sizes
improver
2021-06-30 08:06:40
i know avif way too little to benchmark against it if it needs that many flags
fab
2021-06-30 08:08:11
maybe you could use libjxl v0.3.7-171-gc12aec2 win_x64 2021.06.28
2021-06-30 08:08:15
for %i in (C:\Users\User\Documents\deblocking5\*.png) do cjxldeblocking -I 0.881 -s 1 -q 91.732 --gaborish=0 --use_new_heuristics %i %i.jxl
2021-06-30 08:08:17
exact command
2021-06-30 08:08:24
i did not use target size
2021-06-30 08:08:33
it just setted the size you choose
2021-06-30 08:08:37
only casual, it happened for no reason.
improver
2021-06-30 08:09:21
yea totally looks like casual clear and developper-endorsed flags right here /s
fab
2021-06-30 08:09:24
deblocking isn't a new command
2021-06-30 08:09:32
is that i renamed cjxl
2021-06-30 08:09:42
because i need to copy newer builds
2021-06-30 08:10:00
i test only at s 9 -d 1
raysar
2021-06-30 08:11:18
An picture with very sharp edge original:
2021-06-30 08:11:25
jxl -d 1 (458ko)
2021-06-30 08:13:28
jxl -d2 (300ko) ringing is very low, look at the scale.
fab
2021-06-30 08:13:59
which build raysar
2021-06-30 08:15:12
2021-06-30 08:15:15
s 1 encoded
2021-06-30 08:15:22
what size did you have
2021-06-30 08:15:45
raysar
2021-06-30 08:16:28
jxl -d 3 (225 ko) it's half the size of d1 and it's amazing the ringing is very low !
lithium
2021-06-30 08:17:46
I think some quality issue is happen on non-photographic image, I didn't test photographic image, but I think for current jxl have stable quality on photographic image.
raysar
lithium I think some quality issue is happen on non-photographic image, I didn't test photographic image, but I think for current jxl have stable quality on photographic image.
2021-06-30 08:19:25
yes you wright but on lossless modular file size is very low size on "powerpoint" style image πŸ˜„
fab
2021-06-30 08:20:58
raysar which build
2021-06-30 08:21:04
and which speed
lithium
raysar yes you wright but on lossless modular file size is very low size on "powerpoint" style image πŸ˜„
2021-06-30 08:22:36
Agree, basically if image have less color and structure simple, without dct probably a best method.
improver
2021-06-30 08:28:33
whether i try on my images with -d 1 it looks just ok idgi
2021-06-30 08:28:52
ah nvm haven't zoomed on this one
2021-06-30 08:29:08
2021-06-30 08:29:17
^ orig
2021-06-30 08:29:22
2021-06-30 08:29:48
^ jxl `-d 1` 169910 bytes
2021-06-30 08:30:46
wait source is messed up even tho its .png aaaaaaaaa
2021-06-30 08:31:45
we need "lossless certified" or something for images, formats alone don't do justice
fab
2021-06-30 08:34:11
i tried a settings
2021-06-30 08:34:12
for %i in (C:\Users\User\Documents\deblocking7\*.png) do cjxl -q 33.983 -s 8 -p -I 1 --use_new_heuristics %i %i.jxl
2021-06-30 08:34:19
libjxl v0.3.7-184-g67fa874 win_x64 2021.06.30
2021-06-30 08:34:30
basically i tried the max i could try
diskorduser
2021-06-30 08:34:40
"new heuristics"
improver
2021-06-30 08:34:51
new heuristic pro
diskorduser
2021-06-30 08:35:02
Perro
fab
2021-06-30 08:35:11
2021-06-30 08:35:37
lithium
improver we need "lossless certified" or something for images, formats alone don't do justice
2021-06-30 08:36:02
Source image lossless is great, but I think in real scenario, some image probably only have lossy source.
fab
2021-06-30 08:36:30
what do you think
2021-06-30 08:36:38
https://eddiezato.github.io/bin/
diskorduser
lithium Source image lossless is great, but I think in real scenario, some image probably only have lossy source.
2021-06-30 08:36:51
Use lossless jpeg compression?
lithium
diskorduser Use lossless jpeg compression?
2021-06-30 08:41:39
lossless jpeg compression is great, but can't compress too much, for jpeg q90+ 444 image I guess use d1.0~0.5 probably still can get stable quality?
improver
2021-06-30 08:42:20
tfw still searching and cannot find truly lossless image where `-d 1` would make any visible artifacts
2021-06-30 08:42:37
maybe my downloads folder is not diverse enough
2021-06-30 08:43:06
should try my animu screenshots or something maybe
raysar
lithium Source image lossless is great, but I think in real scenario, some image probably only have lossy source.
2021-06-30 08:43:16
Yes that's why jxl dev are genius and create jpeg recompression for 20% file size reduction 😍 And in real life visual recompression of jpeg is good in jxl, there is only even more artifacts and smoother noise. Jpeg 90% quality (pretty huge file size) is a HUGE problem, they have ALSO HORRIBLE ringing everywhere !
improver
2021-06-30 08:43:55
i mean if i zoom in 200% I can see stuff but otherwise it's really hard to find anything
lithium
2021-06-30 08:45:40
other jpeg lossless recompression implement > lepton and packjpg
diskorduser
lithium lossless jpeg compression is great, but can't compress too much, for jpeg q90+ 444 image I guess use d1.0~0.5 probably still can get stable quality?
2021-06-30 09:01:08
every lossy codecs have their own artifacts. You can't just expect good quality without removing those artifacts.
2021-06-30 09:03:14
Or you could do like this. Open the jpg, save it on lower quality and use jxl's lossless jpeg recompression mode.
raysar
2021-06-30 09:21:06
Look at here an horrible internet jpeg file 491 ko
2021-06-30 09:21:50
-d 2.3 (0.15bpp!) 70% file size reduction and it keep a good visual quality, only noise and artifact noise is removed.
2021-06-30 09:25:54
Lossless recompression is 33% file size reduction !
lithium
diskorduser every lossy codecs have their own artifacts. You can't just expect good quality without removing those artifacts.
2021-07-01 06:36:44
I understand jpg to jxl still a lossy way, so I just expect d 1.0 can keep good quality and include all jpg artifacts or lossy error. Some CDN service will lossy recompress jpg file to other format, so I guess high quality(q90~95) jpg lossy compress to jxl(d1.0~0.5) is acceptable? Use jpg lossy recompress is a good idea? I not sure. > jpg q92 444 (ycbcr, dct 8x8)=> jpg q90 444 => lossless jpg jxl > jpg q92 444 (XYB, vardct)=> jxl d1.0 s8
fab
2021-07-01 11:27:34
there is no jxl encoder that can reduce more than 42% in lossless -s 9 -E 3 -q 100
raysar
lithium I think some quality issue is happen on non-photographic image, I didn't test photographic image, but I think for current jxl have stable quality on photographic image.
2021-07-01 12:42:17
Example on infographic image: varDCT suck against lossless modular Original PNG 307 kB -s 9 (and -s 9 -E 3) modular 89.9 kB
2021-07-01 12:43:37
The lower varDCT -d 16 (with target_size) = 102 kB ! (0.08bpp) But you can see there is NO ringing on text ! It's AMAZING !
lithium
2021-07-01 12:53:04
cjxl patches function probably very useful for this case(text content).
raysar
2021-07-01 12:56:53
You wright with patches=0 there are artefacts.
2021-07-01 12:58:45
With modular and patches=0 file size increase to 112 kB, it's good too.
2021-07-01 01:02:19
I'm sure, with PNG encoder need to encode image in modular when we use -s 10 (for example) in varDCT mode and encoder takes the lower size automaticaly. People don't want to think about using modular for specific file ...
lithium
2021-07-01 01:03:35
I want -s 11 !
raysar
2021-07-01 01:04:27
Another warning need to refuse encoding output file if it's bigger than the original file. If this file is in my batch encoding (-d 1) jxl is bigger than the png and lossy :/
lithium
2021-07-01 01:05:30
Agree, Hope cjxl can use better heuristic choose right method.
raysar
lithium Agree, Hope cjxl can use better heuristic choose right method.
2021-07-01 01:06:38
Bruteforce for now is a good initial solution ^^ for -s 10 :p
2021-07-01 01:08:54
why s11? s10 does not exist now
lithium
2021-07-01 01:10:44
speed Sloth πŸ™‚
improver
raysar why s11? s10 does not exist now
2021-07-01 01:36:00
gotta turn it up to eleven
_wb_
2021-07-01 02:33:27
-s glacier and -s tectonic_plate have been suggested at some point for -e 10 and 11
monad
2021-07-01 02:55:06
I still like amoeba.
_wb_
2021-07-01 02:59:07
I like sponge
Deleted User
2021-07-01 03:53:46
Isn't sloth slower than tortoise? If it is, then it should be assigned to speed 10 IMHO
improver
2021-07-01 04:08:19
what about snails
Cool Doggo
Isn't sloth slower than tortoise? If it is, then it should be assigned to speed 10 IMHO
2021-07-01 04:36:02
slightly slower
diskorduser
2021-07-01 05:48:47
Leech
improver
2021-07-01 06:57:22
can't they actually swim pretty fast
_wb_
2021-07-01 07:00:47
Let's not use yucky animals
improver
2021-07-01 07:07:29
yucky is subjective
2021-07-01 07:07:34
so are animal names though
2021-07-01 07:08:08
i personally think that snails and leeches are p cool
spider-mario
2021-07-01 07:26:56
evidence for snails in popular culture:
2021-07-01 07:35:42
alternative for French speakers
2021-07-01 07:40:34
the presenter mentions a previous record of β€œ3 weeks, 27 days and 6 hours” (yeah, that’s three more weeks) for a distance of 18" (US) / 40β€―cm (FR)
lithium
2021-07-02 09:45:50
libjxl-7896a7e
fab
2021-07-02 09:48:41
use -d 1 -s 9
2021-07-02 09:48:54
can you send source image
improver
2021-07-02 09:51:08
needs exact file sizes
fab
2021-07-02 09:51:14
avif is ringing more
2021-07-02 09:51:23
the hair looiks totally ringing
improver
2021-07-02 09:51:28
without file sizes we can't know
fab
2021-07-02 09:54:26
based on my test it reduces file size by 30% without anyone noticing anything
2021-07-02 09:54:46
very less distorsion, good noise redistribution
2021-07-02 09:55:08
photo can look like they were shoot on galaxy s4 so it worsen image
2021-07-02 09:56:13
avif focuses more on appeal, hiding ringing as much as possible in parts of image, blocking is less visible, but jxl is not bad
2021-07-02 09:56:24
just not ready for general use
2021-07-02 09:58:13
i'm 286 of 1043 encoded 1080x1080 images
lithium
2021-07-02 10:17:44
> original-full 682,462 > libjxl-d0.5-s8 118,341 > libavif-q7-s4 110,672 > libavif-q7-s3 108,708
2021-07-02 10:23:35
I understand compare encoder exact file size is very important, but according to jxl distance design intention, d0.5 and d1.0 should output stable(not look so bad) quality image?
fab
2021-07-02 10:26:57
i understand you want -d 0.88 at -s 8 and still good looking images
2021-07-02 10:29:03
you don't want compromises
2021-07-02 10:31:35
i don't think this image should look bad at -d 0.767 -s 9
2021-07-02 10:31:48
with the build you said
2021-07-02 10:31:53
send the source image
lithium
2021-07-02 10:33:35
libjxl-7896a7e, original_cut
fab
2021-07-02 10:33:55
-d 0.5 -s 7 looks a good in this
2021-07-02 10:36:34
or do -q 71.095 --faster_decoding=3 --use_new_heuristics -s 9 -I 0.4
2021-07-02 10:36:47
if you want less precision and more oblique faces
lithium
2021-07-02 10:39:49
I don't want use lower quality distance, I favor d1.0, d0.8(q90, q92) and d0.5(q95).
fab
2021-07-02 10:40:10
then you should wait improvements of heuristics
2021-07-02 10:40:20
for anime is not great you're right
2021-07-02 10:40:31
i see a lot wi horizontal lines and slightly artifacts, heavy ringing
2021-07-02 10:52:33
perceived quality is like 73.518 73.185 of old jpeg
2021-07-02 10:52:44
i don't know if old jpeg can be so specific
2021-07-02 10:53:17
i guess is not the latest heuristics
2021-07-02 10:53:27
SO YOU CAN'T LIKE IT
lithium
2021-07-02 11:49:49
No, I don't think avif is winner, avif just get little little bit quality advantage for this content, I believe jxl can make better quality. πŸ™‚
fab
2021-07-02 12:08:00
jxl needs a 12,6% improvement just be transparent at q 81.576 -s 4 --use_new_heuristics
_wb_
2021-07-02 12:32:05
https://twitter.com/jonsneyers/status/1410921825077501954?s=19
fab
2021-07-02 12:34:35
another thing i don't agree is aggressively aiming for example a 30% reduction
2021-07-02 12:34:54
because of not understanding which bitrate is best for the encoder
2021-07-02 12:35:12
i posted an article in coverage is basically what i wrote today
2021-07-02 12:36:08
people take the 30% number for guaranteed
2021-07-02 12:44:26
honestly i don't care about more sharpness and lose of quality, about more compression, about more transparency, that's too early to judge
_wb_
2021-07-02 01:44:39
Getting predictable/reliable results in the range of fidelity targets that matters, that's imo the most important thing. I think in the -q 60 to -q 95 range, cjxl does that β€” maybe for 'ligne claire' some more work is needed, but roughly speaking, you know that -q 90 should be safe for most images, -q 80 should be OK, etc.
2021-07-02 01:45:45
with avifenc, cwebp, and cjpeg you don't have that: sometimes cjpeg -q 80 is perfect, sometimes it is artifacted.
2021-07-02 01:46:18
with avifenc it's really hard to know what settings will give a good result on an image
2021-07-02 01:47:44
for jpeg, many programs have a "save" dialog that lets you control a slider and see what happens to the image so you can adjust the slider to your taste. It is unfortunate that this is needed, but it kind of works.
2021-07-02 01:48:13
with avif that will not work though, encoding is too slow to make such a slider usable
2021-07-02 01:48:50
even though it's probably more needed, because while you can go to lower sizes, you really need to check what the encoder is doing
2021-07-02 01:49:39
with jxl you just don't need the slider, you can just set it and forget it
lithium
2021-07-02 01:51:05
I using libjxl -d 1.0 or -d 0.5 file size to find a reasonable libavif -cq-level=N. πŸ™‚
Jyrki Alakuijala
2021-07-02 05:34:32
https://storage.googleapis.com/demos.webmproject.org/webp/cmp/2021_07_01/index.html#clovisfest*3:1&JXL=l&JXL=l&subset1
2021-07-02 05:34:41
is the latest comparison from webp team
2021-07-02 05:34:53
https://storage.googleapis.com/demos.webmproject.org/webp/cmp/2021_06_08/index.html#clovisfest*3:1&JXL=l&JXL=l&subset1
2021-07-02 05:35:04
a month ago, before the acs tree reversal
2021-07-02 05:38:30
we have some improvement in this comparison, too
2021-07-02 05:39:29
if someone observes significant degradations from 2021-06-08 to 2021-07-01, I'd like to learn about it and how to see it
fab
2021-07-02 05:39:57
To me it looks worse in every image
2021-07-02 05:40:54
lots of ringing in high frequency details
Jyrki Alakuijala
2021-07-02 05:41:08
sloth is not considered a careful animal -- it has many things living in its fur -- let's not call our best compression options 'sloth'
fab
2021-07-02 05:41:08
is because you are lefting alien artifacts
2021-07-02 05:41:30
even on big the artifacts are annoyign
2021-07-02 05:41:52
i wouldn't go any higher than
2021-07-02 05:41:53
-q 71.095 --faster_decoding=3 --use_new_heuristics -s 9 -I 0.4
Jyrki Alakuijala
2021-07-02 05:41:55
could you find the image where that is most easily visible
fab
2021-07-02 05:42:06
with libjxl v0.3.7-192-g7896a7e
Jyrki Alakuijala
2021-07-02 05:42:09
and give zooms or similar to show what you mean
fab
2021-07-02 05:42:17
i looked only at clovisfest
2021-07-02 05:43:18
Jyrki Alakuijala
2021-07-02 05:46:11
which bitrates did you focus on?
fab
2021-07-02 05:46:31
mostly large is annoying
2021-07-02 05:46:34
0.48 bpp
2021-07-02 05:46:41
2021-07-02 05:46:50
this is -q 71.095 --faster_decoding=3 --use_new_heuristics -s 9 -I 0.4
2021-07-02 05:46:57
less areas
2021-07-02 05:47:01
so bigger noise
2021-07-02 05:47:13
and more pixelization
2021-07-02 05:48:28
now that i looked at the one with custom settings large looks good to me
2021-07-02 05:48:38
it depends how you look at it
2021-07-02 05:49:06
i see issues with small
Jyrki Alakuijala
2021-07-02 05:49:12
I like median better than what you showed
2021-07-02 05:49:27
significantly better, muchos muchos less ringing
fab
2021-07-02 05:49:51
so you prefer medium 31.9 kb
2021-07-02 05:49:57
compared to the settings i use
Jyrki Alakuijala
2021-07-02 05:50:05
yes, better than the settings you showed
2021-07-02 05:50:38
and if I comprare 8.6. vs. 1.7., 1.7 looks much better
fab
2021-07-02 05:50:51
i don't hav a good screen
Jyrki Alakuijala
2021-07-02 05:50:54
not day and night, but substantially less ringing
2021-07-02 05:51:05
the gui allows you to 3x zoom
2021-07-02 05:51:15
then you can move back 3x to compensate for it
fab
2021-07-02 05:52:39
yes i see way more sharpness in xnview
2021-07-02 05:52:49
probably more than jpeg normal heuristic limits
2021-07-02 05:52:56
probably is bad
2021-07-02 05:53:23
but better at wasting 80 kb or q 90 especially with low resolution photo
2021-07-02 05:53:29
i should retry lossless jpg transcode
Scope
Scope <https://github.com/libjxl/libjxl/pull/246>
2021-07-03 01:13:06
<https://github.com/libjxl/libjxl/pull/262>
2021-07-03 01:13:33
2021-07-03 01:13:34
2021-07-03 01:13:34
2021-07-03 01:13:35
2021-07-03 01:13:35
2021-07-03 01:13:35
2021-07-03 01:13:36
2021-07-03 01:14:21
In some areas a little better, some I'm not sure (ringing artifacts may appear in other areas and sometimes there may be more blurring)
_wb_
2021-07-03 08:37:10
To anyone using VMAF as a still image metric, this is what Netflix (who made the metric in the first place) said about that: > VMAF, as of today, is a metric trained and developed to judge encoded videos rather than static images. The range of distortions associated with the range of image codecs in our tests is broader than what was considered in the VMAF development process and to that end, it may not be an accurate measure of image quality for those codecs. Further, today’s VMAF model is not designed to capture chroma artifacts and hence would be unable to distinguish between 420 and 444 subsampling, for instance, apart from other chroma artifacts (this is also true of some other measures we’ve used, but given the lack of alternatives, we’ve leaned on the side of using the most well tested and documented image quality metrics). This is not to say that VMAF is grossly inaccurate for image quality, but to say that we would not use it in our evaluation of image compression algorithms with such a wide diversity of codecs at this time. (source: https://netflixtechblog.com/avif-for-next-generation-image-coding-b1d75675fe4)
Scope
2021-07-03 08:48:36
However, their framework can calculate VMAF and its documentation is often referred to as an example of a metric that can be used <https://github.com/Netflix/image_compression_comparison>
_wb_
2021-07-03 08:49:37
I completely agree with "we would not use it in our evaluation of image compression algorithms with such a wide diversity of codecs"
2021-07-03 08:51:10
I don't trust any metric, but at least DSSIM, SSIMULACRA and Butteraugli are actually looking at all the color and in a perceptually relevant color space.
2021-07-03 08:51:18
We need better metrics though
Scope
2021-07-03 08:56:28
And exactly DSSIM, SSIMULACRA and Butteraugli are not in their framework and I even asked to add them a long time ago: <https://github.com/Netflix/image_compression_comparison/issues/2>
raysar
2021-07-03 09:57:18
Maybe we need to create an image metric using neural network tuned by eye of thousands of humans πŸ˜„ I see this cool paper about neural network metric πŸ˜„
fab
2021-07-03 10:30:46
this is the boss of JPEG AND JPEG XL
2021-07-03 10:30:51
who wrote that
2021-07-03 10:30:55
tourij ebrahim
2021-07-03 10:31:28
read first page
_wb_
2021-07-03 10:52:03
http://compression.cc/leaderboard/perceptual/test/
2021-07-03 10:52:44
PSNR accuracy: 0.507
2021-07-03 10:53:04
What's the accuracy of coin tossing here? 0.5?
2021-07-03 12:39:30
Yes, accuracy is just correctly predicted pairs / total pairs, and the choice is binary, A > B or A < B
2021-07-03 12:39:51
So PSNR is slightly better than coin tossing
2021-07-03 12:40:11
50.7% correct instead of 50%
2021-07-03 12:44:12
Likely not even statistically significant
improver
2021-07-03 04:52:02
orig
2021-07-03 04:52:32
before PR 273
2021-07-03 04:52:39
after
2021-07-03 04:53:22
``` sizes: 76712 54764555_p0.png.new.jxl 76886 54764555_p0.png.old.jxl ```
2021-07-03 04:53:53
so new is both smaller and visually better
2021-07-03 04:54:07
it's `-d 2 -e 8` for both of these encodes
2021-07-03 04:54:27
i dont know exact version of old encodes but it's like day old
2021-07-03 04:56:16
(I really should write some scripts or something like that to fetch exact commits and build encoder for these, so I can be sure that it's not some other commits doing that)
fab
2021-07-03 05:01:55
THANKS for this useful comparison.
improver
2021-07-03 05:06:29
old version is actually 2 days old, and had revision r189 and commit g653358d
2021-07-03 05:07:30
so it does include Don't favor 4x4 locality in visual masking (#262) merge too
2021-07-03 05:08:03
(i mean old version didn't have that, and this comparision ends up evaluating multiple improvements)
2021-07-03 05:09:09
ill try building just one commit before locally, since this wasn't exactly really clean benchmark
2021-07-03 05:15:14
c8b0bf3, 76765 bytes
2021-07-03 05:16:25
this is one commit before `Less ringing, more fidelity through 'info loss'`
2021-07-03 05:17:16
changes are much more subtle
2021-07-03 05:17:52
but still quite visible in few areas
2021-07-03 05:28:15
so yeah basically it's improving :--DDD
2021-07-03 05:30:00
in _some_ places it's a little bit worse though
2021-07-03 05:32:13
like in both versions there's artifact, but it's different and incidentally it somehow gets less noticeable in old one, but there are more good ones than bad
2021-07-03 05:34:37
old2 ver
2021-07-03 05:34:44
new ver
2021-07-03 05:39:32
but yeah in general there are more improvements than downsides
2021-07-03 05:40:37
and in more reasonable (for anime content) than `-d 2` levels it shouldn't be visible, there would just be improvement in general, and maybe reduced file size too
Jyrki Alakuijala
improver it's `-d 2 -e 8` for both of these encodes
2021-07-03 05:59:13
I'm only testing -e 7 in my work, thank you for checking with -e 8
2021-07-03 06:02:08
I measured only a 0.006 % improvement in filesize in my testing
2021-07-03 06:02:21
but 2.5 % improvement in max error
2021-07-03 06:02:35
and I observed a fidelity improvement of complex textures
2021-07-03 06:02:41
in 273
2021-07-03 06:03:06
(and less locations of anime drawings ringing, but often in different places)
2021-07-03 06:03:24
all such analysis requires a lot of subtlety -- I'm amazed that we agree about the results
2021-07-03 06:05:04
are there any Genshin Impact players here (in the anime fans)?
improver
2021-07-03 06:05:37
i tried it on my phone but got bored after a bit, can't into games much nowadays
Jyrki Alakuijala
2021-07-03 06:06:10
I like the music in it πŸ˜„
2021-07-03 06:06:56
I played quite a lot and I'm at AR 54 now
improver
2021-07-03 06:09:35
i remember music being pretty nice, yeah
2021-07-03 06:11:25
im just bad at keeping my attention unless game really hits my spots. yume nikki (old version, haven't tried new 3d thing) was awesome
lithium
Jyrki Alakuijala are there any Genshin Impact players here (in the anime fans)?
2021-07-03 06:18:17
I haven't play Genshin Impact, but I like game soundtrack πŸ™‚ , > https://www.youtube.com/watch?v=h_wb3LfOMw4 > https://www.youtube.com/watch?v=-LZxk09LNaM And I also like war of warcraft soundtrack, > https://www.youtube.com/watch?v=UuSON351IyY
diskorduser
Jyrki Alakuijala are there any Genshin Impact players here (in the anime fans)?
2021-07-03 06:24:43
I will play it after few months. Currently I'm playing - sky: children of the light.
improver
2021-07-03 06:26:52
these ost vids are great
Jyrki Alakuijala
2021-07-03 06:28:25
my daughter plays sky a lot
2021-07-03 06:28:49
I like the atmosphere in the sky game
2021-07-03 06:29:02
it feels more 'spiritual' or elegant than most games
diskorduser
2021-07-03 06:29:27
Yeah.
Jyrki Alakuijala
2021-07-03 06:30:24
she is just five, but she makes friends all around the planet and she is excited that they keep her hand when showing the game world
2021-07-03 06:31:12
my UID in Genshin Impact is 716656652 if someone wants to connect
lithium
2021-07-03 06:35:47
I'm a war of warcraft player before, but for now only game soundtrack can attract me.
Jyrki Alakuijala
2021-07-03 06:36:27
I never tried WoW, I considered it too addictive πŸ˜„
2021-07-03 06:36:53
I played nethack 2.3e
2021-07-03 06:37:32
perhaps this is getting offtopicy ...