Thread 105809679 - /g/ [Archived: 532 hours ago]

Anonymous
7/5/2025, 7:23:10 PM No.105809679
mfw
mfw
md5: 917a00b50b1d71f9a341e312d069a63d๐Ÿ”
Is VMAF a good quality metric for cartoon images? I want to up my image codec autism game. If you launch this windows script from the CLI directly it will encode a webp to a desired quality setting and spit out a vmaf score.

@echo off
set /p quality=Enter quality:
cwebp -m 6 -q %quality% in.png -o %quality%.webp
ffmpeg -hide_banner -i in.png -i %quality%.webp -filter_complex "[0:v][1:v]libvmaf" -f null -

I'm gonna try it out across different webp quality settings and try to match it with libjpeg-turbo.
Replies: >>105809687 >>105809908 >>105810003 >>105810479 >>105811809
Anonymous
7/5/2025, 7:24:00 PM No.105809687
>>105809679 (OP)
vietnamese male asian female?
Replies: >>105809898
Anonymous
7/5/2025, 7:50:53 PM No.105809883
20
20
md5: 0086a9bedd0bc60732edfa115151447b๐Ÿ”
I'll do increments of 20 until I reach 100. 0 will be skipped since I doubt anyone would use this irl.

Q20 Webp
VMAF score: 89.283047
24.6 KB file size
https://files.catbox.moe/njvjla.webp

libjpeg-turbo failed to reach this file size so no comparison to make.
Replies: >>105810672 >>105812049
Anonymous
7/5/2025, 7:52:03 PM No.105809898
>>105809687
vaginal male anal female
Anonymous
7/5/2025, 7:53:26 PM No.105809908
>>105809679 (OP)
Now do this with some more risquรฉ pictures of Nobara
Anonymous
7/5/2025, 7:57:51 PM No.105809950
40
40
md5: ef6d9bf4abdead8eee5e7b996a290c74๐Ÿ”
Q40 Webp
VMAF score: 92.205984
32.3 KB file size
https://files.catbox.moe/7p8phl.webp
Replies: >>105809992 >>105810085
Anonymous
7/5/2025, 8:00:33 PM No.105809992
almost-40kb-wtf
almost-40kb-wtf
md5: 9049fb29f0787144f4b3a17607f4c748๐Ÿ”
>>105809950
libjpeg-turbo ALSO failed to reach this file size but fuck it, good enough for a comparison and VMAF correctly predicted that this looks like absolute utter fucking dogshit.

VMAF score: 43.681437
Replies: >>105810017 >>105810173
Anonymous
7/5/2025, 8:01:28 PM No.105810003
>>105809679 (OP)
complete fucking retard here: is vmaf really usable for static images? like isn't it tuned for video?
but besides, stop wasting your time on lossy webp, it makes no fucking sense to use, it's barely any better than mozjpg, either use that or go for jxl/avif, it's not like webp has great compatibility anyways and it's probably going to end up being a forgotten format nobody uses in X amount of years so not good to archive stuff either
Replies: >>105810147 >>105811460 >>105811809
Anonymous
7/5/2025, 8:02:29 PM No.105810017
>>105809992
why libjpeg turbo instead of mozjpeg/jpegli???
are you running a 386?
Replies: >>105810147
Anonymous
7/5/2025, 8:09:00 PM No.105810085
>>105809950
My queen...........

Anyways, I'll be using your research to know what settings to use in a gui
Anonymous
7/5/2025, 8:14:56 PM No.105810147
60
60
md5: 9ea21c197842bcdb9195c1ffaf24eec9๐Ÿ”
Q60 Webp
VMAF score: 93.893534
40.2 KB file size
https://files.catbox.moe/b16b7i.webp

>>105810003
>>105810017
Unfortunately 4chan will mess with JPGs encoded with mozjpeg/jpegli so it's not possible to easily use them for a comparison here. Anyway for the purposes of gauging whether VMAF is of any use for image quality comparisons, specifically cartoon images, I HAVE to use libjpeg-turbo because mozjpeg/jpegli might have been tuned to cheat in VMAF. Similarly VMAF cannot be used with JXL/AVIF since they're guaranteed to cheat in them.

I'm doing all this shit because BOTH SSIM and PSNR failed to predict quality of cartoon images with BOTH Webp and JPG.
Replies: >>105810173 >>105810413
Anonymous
7/5/2025, 8:17:53 PM No.105810173
image-3
image-3
md5: 66bd0c8dd81e99b71391151b4479572b๐Ÿ”
>>105810147
I guess there's no point in making a libjpeg-turbo comparison to this since >>105809992 is pretty close to its file size...

Man, what is it with cartoons and libjpeg-turbo? It's getting fucking mogged here so badly I feel pity for it.
Anonymous
7/5/2025, 8:23:13 PM No.105810224
80
80
md5: 5c86cbb7b0bca8bf06e7836043213bae๐Ÿ”
Q80 Webp
VMAF score: 95.547430
55.8 KB file size
https://files.catbox.moe/gp2gum.webp
Replies: >>105810278
Anonymous
7/5/2025, 8:28:59 PM No.105810278
56kb
56kb
md5: 9243dbb343d3703a28bbb6696ccf6c53๐Ÿ”
>>105810224
Okay finally, somewhat of an improvement. Image quality is still pretty bad but it does seem like VMAF scores of above 90 and below 95 are "good" quality. Similar to what you would expect with SSIM so this is VERY promising.

VMAF score: 82.274176
Replies: >>105810448
Anonymous
7/5/2025, 8:36:19 PM No.105810351
100
100
md5: e870ca03f481d5bbab0092b64809bf87๐Ÿ”
WEW last quality setting. After this it's gonna be a guessing game trying to get JPG file size up high enough to match Webp's VMAF scores.

Q100 Webp
VMAF score: 97.304532
175 KB file size
https://files.catbox.moe/8ck7xp.webp
Replies: >>105810422
Anonymous
7/5/2025, 8:42:22 PM No.105810413
>>105810147
> I HAVE to use libjpeg-turbo because mozjpeg/jpegli might have been tuned to cheat in VMAF. Similarly VMAF cannot be used with JXL/AVIF since they're guaranteed to cheat in them.
oh so you're just that schizo again, ok...
Anonymous
7/5/2025, 8:43:01 PM No.105810422
175kb
175kb
md5: e2891d8a052c54b77f2d09cb913a7da7๐Ÿ”
>>105810351
Interesting. libjpeg-turbo was finally able to match Webp filesize and quality but only after an exponential increase in filesize.

VMAF score: 97.000437
Anonymous
7/5/2025, 8:45:47 PM No.105810448
1751736190647151
1751736190647151
md5: 30813621b9e171810ac5f7a87ba0497f๐Ÿ”
>>105810278
>looks like completee garbage but mozjpeg is bad because... it cheats the scores ok, the point of lossy compression is to make the computer give happy number instead of making human happy!!!
no one gives a shit about your mental illness, this thread is completely fucking pointless, kys.
Replies: >>105810477
Anonymous
7/5/2025, 8:49:33 PM No.105810477
Untitled
Untitled
md5: 9b55f8c59573cf41c9755d2c409a646f๐Ÿ”
>>105810448
4chan messes with mozjpeg/jpegli uploads you fucking dumbass.
Replies: >>105810495
Anonymous
7/5/2025, 8:49:58 PM No.105810479
>>105809679 (OP)
even netflix, the jews that literally created vmaf refuse to use it for still images and stick to ssim instead: https://netflixtechblog.com/avif-for-next-generation-image-coding-b1d75675fe4
meds, please.
Replies: >>105810532
Anonymous
7/5/2025, 8:51:53 PM No.105810495
>>105810477
it losslessly reencodes them and that causes those very optimized jpegs to become bigger yes...
so your solution to this is to upload crappy output from a shitty encoder that hasn't been relevant in 20 years... how the fuck does that make any sense?
1. it's a "problem" that only affects 4chan
2. you can just use a lower quality setting for mozjpeg to aim for the same filesize
I have no idea what your end goal is here.
Replies: >>105810532 >>105810537
Anonymous
7/5/2025, 8:56:34 PM No.105810532
1750704129455654_thumb.jpg
1750704129455654_thumb.jpg
md5: f06efbf241eb929d75d950a0b5ca8fd5๐Ÿ”
>>105810479
What do you think VIF is genius? BOTH SSIM AND PSNR COMPLETELY AND UTTERLY FUCKING FAILED TO PREDICT CARTOON IMAGE QUALITY NOT JUST IN WEBP BUT IN JPG AS WELL.

fuck

https://github.com/Netflix/vmaf/blob/master/libvmaf/src/feature/vif.c

>>105810495
I don't trust what 4chan is doing. Maybe I'll redo this whole thing and upload the jpegli versions in a zipped up folder in the future.
Replies: >>105810566 >>105812118
Anonymous
7/5/2025, 8:56:48 PM No.105810537
>>105810495
>it losslessly reencodes them and that causes those very optimized jpegs to become bigger yes...
and besides... it doesn't
the filesize displayed is just wrong, my guess is that the code throws away the optimized jpeg and sticks with the original if the transcode makes it bigger (but the filesize display stays the same as the optimized jpeg that was discarded)
if I save my 72 kb jpeg, it's still 55 kb like it originally was
so yeah you are doing all this schizo shit for what's clearly just a bug that any person with a working brain will figure out in 30 seconds
I probably reached the same conclusion in the past but had just forgotten about it, and you ignored that fact like every single response you get
I have no idea why you even do these threads, they focus on pointless shit that nobody cared about, and when people try to make you reason and explain why you're fucking retarded you just never acknowledge anything, it's tiring and I'm just a retard for even trying to """help""".
Replies: >>105810555
Anonymous
7/5/2025, 8:58:52 PM No.105810555
>>105810537
You still trust 4chan that much after that sharty hack? LOL
Replies: >>105810583
Anonymous
7/5/2025, 8:59:34 PM No.105810566
>>105810532
>What do you think VIF is genius?
...a version of vmaf that's optimized for still images and that you aren't using? it literally has a different name, i wonder why...
Anonymous
7/5/2025, 9:01:16 PM No.105810583
>>105810555
>You still trust 4chan that much
...reading the file size of the local file on my local machine is somehow "trusting 4chan"?
...the sha256 is literally the fucking same as the file I uploaded
Replies: >>105810602
Anonymous
7/5/2025, 9:02:57 PM No.105810602
>>105810583
Not good enough for me but you do you boo.
Replies: >>105810608
Anonymous
7/5/2025, 9:03:50 PM No.105810608
>>105810602
>the sha256 being the same is not enough evidence that the file is the same
ok, i'm done, won't interact with your ragebait anymore, bye.
Anonymous
7/5/2025, 9:12:04 PM No.105810672
62kb
62kb
md5: 349274ea639330e9151bf437b8470fb8๐Ÿ”
>>105809883
JEEEESUS christ so after 10+ attempts I finally got a similar VMAF score to a Q20 Webp.

24.6 KB webp divided by 62 KB libjpeg-turbo = 0.4 so Webp achieves 60% better compression efficiency than libjpeg-turbo.

I'm not sure if this sub-90 VMAF scores works similar to SSIM to denote low quality but it does seem like it.
Replies: >>105812049
Anonymous
7/5/2025, 9:39:26 PM No.105810879
webp-vmaf
webp-vmaf
md5: 94c5a855747405dd94b0908cfd8131fc๐Ÿ”
So far all this data amounts to this basic graph. I guess the next step would be to painfully match these VMAF scores with libjpeg-turbo and make another graph showing the file size increase compared to Webp. So far I got Q 20...
Anonymous
7/5/2025, 9:55:07 PM No.105811003
draft
draft
md5: 81289374da8419f88901c7f7aefba027๐Ÿ”
Maybe VMAF scores could become the Y axis labels? Something like this I think.

Getting the other libjpeg-turbo results is going to take forever thoughbeit. Can any of you fucking nerds help me speed this up somehow? I only have a high school level windows batch scripting proficiency.
Anonymous
7/5/2025, 10:34:36 PM No.105811294
draft-2
draft-2
md5: b57015f4154251ca1a3551d52ae35fde๐Ÿ”
I'll do jpegli as well even though I suspect it may cheat in VMAF. I mean google did release this thing in 2024 and VMAF was released in 2016 so there was plenty of time to sabotage VMAF scores but whatever.

https://opensource.googleblog.com/2024/04/introducing-jpegli-new-jpeg-coding-library.html

https://netflixtechblog.com/toward-a-practical-perceptual-video-quality-metric-653f208b9652
Anonymous
7/5/2025, 11:02:43 PM No.105811460
1751401282941318
1751401282941318
md5: 2577ce80c97db9f749ec19e369cf385b๐Ÿ”
>>105810003
>it's not like webp has great compatibility anyways and it's probably going to end up being a forgotten format nobody uses in X amount of years so not good to archive stuff either
Both modern Android/Windows/Mac natively support webp and older versions can be augmented to support it via third party image viewers/editors. Pretty much all web browsers support it too.

I really doubt it's going away soon because even though AVIF and JXL both outperform it (at least in lossy compression), Webp still has the advantage of fast software decode speeds which matters for all the low end electronics out there.

JPG might have become better but it still doesn't support transparency or animations so it's still practically an obsolete soviet-era technology.
Anonymous
7/5/2025, 11:52:47 PM No.105811809
>>105809679 (OP)
VMAF is for video you idiot.
>>105810003
Still less retarded than OP, because you're correct.
Replies: >>105811907
Anonymous
7/6/2025, 12:03:43 AM No.105811907
1751696953586
1751696953586
md5: 7237e5488895b6fa5f64ed7cd2311176๐Ÿ”
>>105811809
I'm trying to find something that will work with cartoon images. VMAF seems to be working but if there's anything better than jerry rigging a video quality metric to detect image quality, I'm all ears man.

https://desuarchive.org/g/thread/105805949
Replies: >>105811934
Anonymous
7/6/2025, 12:09:10 AM No.105811934
>>105811907
Real? Subjective double blind ABX testing with a sufficiently large group of people. That's the real answer.
You could try Butteraugli. Guess what? jpegli and cjxl were tuned based on that metric. You're fighting a losing battle idiot, a these different encoders were TUNED BY DEFAULT TO GAME SPECIFIC METRICS. IIRC for cwebp they tuned for PSNR or SSIM.
Replies: >>105812049
Anonymous
7/6/2025, 12:24:04 AM No.105812049
Untitled
Untitled
md5: 25b878071fdcb3ae8f3d5de08cc2a580๐Ÿ”
>>105811934
I'm not testing modern formats, just plain old Webp and the more ancient JPG image format.

I got a score of 6.1268320084 for the 62KB JPG in >>105810672
vs a score of 8.4359798431 for the 24.6 KB Webp in >>105809883

I would definitely not rate the JPG as better than the Webp so I can't-believe-it's-not-butter is an utter failure like SSIM and PSNR for cartoon images as well. I'm not giving up yet thoughbeit.
Replies: >>105812109
Anonymous
7/6/2025, 12:33:21 AM No.105812109
>>105812049
Those are both awful scores, and both images look like shit. It's working just fine. It's also meant for high quality comparisons.
Replies: >>105812131
Anonymous
7/6/2025, 12:34:31 AM No.105812118
>>105810532
very cute.
Anonymous
7/6/2025, 12:35:27 AM No.105812131
1750450492676914
1750450492676914
md5: a01c04cd20439fc4f9f841de0062af46๐Ÿ”
>>105812109
This is webp so "high quality" isn't even a consideration here lol. Just good old "good" quality you get with a quarter pounder from the clown vs a cheeseburger from a 5 star restaurant.
Anonymous
7/6/2025, 2:38:59 AM No.105812852
draft-4
draft-4
md5: 208cedb15baa780dee0d21fb8ebc4195๐Ÿ”
Fuck, I'm too deep in the shit to quit now. Just one more set of results.
Anonymous
7/6/2025, 3:23:14 AM No.105813121
anon's new fixation... very cute enthusiasm.
Anonymous
7/6/2025, 3:37:00 AM No.105813224
webp-vmaf
webp-vmaf
md5: 4fd244dcfd5f58e26a6c9b2a2b0732f2๐Ÿ”
WELP there you have it folks. At least when cartoons are involved Webp achieves around 50% better compression efficiency against the old libjpeg-turbo JPG encoder and around 30% better compression efficiency against the new jpegli JPG encoder. So while jpegli has made very impressive gains, I don't see Webp going away in the near future.
Replies: >>105813372
Anonymous
7/6/2025, 4:10:52 AM No.105813372
1726652065885
1726652065885
md5: 3971e03e68a0b27db38949b96aa6bc03๐Ÿ”
>>105813224
Kinda strange seeing Webp compete this well in anime content. I always thought this was AVIF's main thing.