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

adoption

Adoption of jxl: what software supports jxl already, how to get more adoption?

yoochan
2023-08-26 11:18:10
I hope devs could improve libjxl based on this feedback! The ease of integration would boost adoption
spider-mario
2023-08-26 01:20:07
by “a proper CMake target file”, I think they mean a file such that users can eschew pkgconfig / `pkg_check_modules` altogether and just use `find_package(JXL)`
username
2023-08-26 01:25:13
they posted an issue on the repo for vcpkg: https://github.com/microsoft/vcpkg/issues/33390
jonnyawsom3
2023-08-26 02:39:02
Seems they joined the server, hopefully we can help
username
2023-08-26 02:40:14
yeah cause when I was trying to look into the build system stuff myself I honestly didn't know what I was even looking for
Quackdoc
2023-08-26 02:40:50
fun fact, with pkgconfigure `libjxl>=0.7.0` will break on windows since it treats >= as library name
Cacodemon345
2023-08-26 03:34:11
FYI, AVIF got dropped again because the libavif library was crippled without libyuv.
2023-08-26 03:34:44
And the latter was incompatible with MSVC.
2023-08-26 03:48:23
Now, does libjxl compile properly on MSVC? I couldn't get the pkg-config files from vcpkg to work properly.
spider-mario by “a proper CMake target file”, I think they mean a file such that users can eschew pkgconfig / `pkg_check_modules` altogether and just use `find_package(JXL)`
2023-08-26 05:00:38
Correct.
2023-08-26 06:52:12
lonjil
2023-08-26 07:04:24
The library is certainly supposed to work, many Windows applications use it. I'd help try to figure it out, but I no longer use Windows.
2023-08-26 07:04:51
Might be worth opening a GitHub issue about it?
Cacodemon345
2023-08-26 07:11:19
Yes.
2023-08-26 07:11:47
And it needs to concern vcpkg's libjxl port.
2023-08-26 07:21:35
I'd attempt providing a libjxl CMake target entirely on my own, but I don't have that much time to devote to it.
lonjil
2023-08-26 07:59:53
most libjxl developers are in Europe (I think), so they'll probably see this tomorrow
veluca
lonjil most libjxl developers are in Europe (I think), so they'll probably see this tomorrow
2023-08-26 08:16:38
indeed, even all 😛
2023-08-26 08:17:33
i never had to do with vcpkg myself though
spider-mario
2023-08-26 08:38:15
even more specifically, currently all in the “Central European Summer Time” (CEST) timezone
2023-08-26 08:38:18
(but also in the weekend)
lonjil
2023-08-26 09:09:56
oh yeah, currently being jobless I've lost track of weekdays and weekends
0xC0000054
Cacodemon345 Now, does libjxl compile properly on MSVC? I couldn't get the pkg-config files from vcpkg to work properly.
2023-08-27 12:38:08
It compiles properly when I use it from within Visual Studio for my Paint.NET JpegXL plugin: <https://github.com/0xC0000054/pdn-jpegxl> I use the vcpkg Manifest Mode (<https://learn.microsoft.com/en-us/vcpkg/users/manifests>) with the `x64-windows-static` and `arm64-windows-static` targets.
Cacodemon345
2023-08-27 10:19:41
That's for MSVC solutions. Whether the CMake way works is what I'm asking.
2023-08-27 09:03:39
Yours also appear to rely on MSBuild getting things right with regards to vcpkg static libraries so that's essentially dark magic.
0xC0000054
Cacodemon345 Yours also appear to rely on MSBuild getting things right with regards to vcpkg static libraries so that's essentially dark magic.
2023-08-27 11:57:26
Perhaps, but as vcpkg was originally designed as a package manager for MSVC; the MSBuild integration should be extensively tested. When I installed the `libjxl:x64-windows-static` package it did not display the cmake package name in the console, but the cmake package name is displayed for most other packages (e.g. libwebp). I am not sure why that is.
VcSaJen
username I mean I understand you are saying that most people flatout do not care about formats and will just use continue to use stuff like PNG but Idk how that relates to this since like I said GZDoom is in the middle of adding support for a bunch of other formats, also they are seemly also planning to add support for HDR and HDR textures soo
2023-08-28 12:46:41
I thought games used DDS, KTX and other GPU-dump texture formats? Unless it's for user-editable skins or user-viewable photos.
joppuyo
VcSaJen I thought games used DDS, KTX and other GPU-dump texture formats? Unless it's for user-editable skins or user-viewable photos.
2023-08-28 12:37:09
GZDoom is basically the Doom engine (from 1993) except with more advanced scripting and graphical features. So usually for textures there’s only single albedo map with all the shadows and highlights painted in, instead of modern games with normal maps or PBR stuff. It’s very old school
2023-08-28 12:42:25
Doom was made before GPUs were even a thing, it was originally software rendered with palette indexed textures. With GZDoom, you can use PNG true color textures if you want and the engine also supports shaders but some people prefer not to use the more advanced graphical features because it’s too far from the visual design of the original game
lonjil
2023-08-28 12:53:30
GPU texture formats kinda suck
2023-08-28 12:53:49
They only make sense if you have certain particular high perf needs.
Cacodemon345
2023-08-28 12:56:42
I mean id Software's Rage game used JPEG XR compression.
joppuyo
Cacodemon345 I mean id Software's Rage game used JPEG XR compression.
2023-08-28 12:58:54
Interesting! The whole megatexture thing was a cool idea but I guess it never really took off
lonjil
2023-08-28 01:04:05
A lot of that tech was still used in Doom 2016 afaik
2023-08-28 01:05:00
But yeah GPU texture formats have rather poor compression ratios. If you want to compress stuff really tight, like with the megatextures, you gotta use something else.
afed
2023-08-28 01:16:31
there is also Neural Texture Compression (NTC) with better compression, but most likely it is a proprietary format only for last gen gpus > The continuous advancement of photorealism in rendering is accompanied by a growth in texture data and, consequently, increasing storage and memory demands. To address this issue, we propose a novel neural compression technique specifically designed for material textures. We unlock two more levels of detail, i.e., 16X more texels, using low bitrate compression, with image quality that is better than advanced image compression techniques, such as AVIF and JPEG XL. At the same time, our method allows on-demand, real-time decompression with random access similar to block texture compression on GPUs, enabling compression on disk and memory. <https://research.nvidia.com/labs/rtr/neural_texture_compression/>
jonnyawsom3
Cacodemon345 I mean id Software's Rage game used JPEG XR compression.
2023-08-28 01:59:38
The Nvidia game overlay still uses JpegXR for HDR screenshots, windows renders the thumbnail and can 'read' the file too but tends to mess up the colors and read the HDR data as a comment instead
joppuyo Interesting! The whole megatexture thing was a cool idea but I guess it never really took off
2023-08-28 02:00:33
Megatextures are mostly used for terrain, since smaller objects might be replaced or updated in future
lonjil But yeah GPU texture formats have rather poor compression ratios. If you want to compress stuff really tight, like with the megatextures, you gotta use something else.
2023-08-28 02:03:10
Generally to still have support for older hardware, most games are limited to BC1 - BC7, then usually compressed into larger game packages that bring the size down to reasonable levels. You'll find PNG textures on procedurally generated or highly moddable games too, since they only need to be read once and then stored in memory, would be quite a good spot for JXL to take over
VEG
2023-08-28 02:36:02
Oodle is often used in games: http://www.radgametools.com/oodle.htm
2023-08-28 02:37:13
As far as I understand, now it is used in the Unreal Engine 5.
2023-08-28 02:37:36
Decompression performance is extremely critical for games with a lot of large textures.
jonnyawsom3
2023-08-28 02:47:09
Oodle is still just BC compression, difference is they preprocess to make it more efficient, then use Kracken or similar on the files after
2023-09-10 05:22:26
https://www.gumlet.com/blog/jpeg-xl/
2023-09-10 05:23:03
Also https://github.com/libjxl/libjxl/issues/2784
Nova Aurora
2023-09-10 06:16:15
Jon gets to disable the cryptominer in libjpeg-XL and still feed his family <:Poggers:805392625934663710>
jonnyawsom3
2023-09-10 06:26:27
The "first CDN" made me wince a little, since Cloudinary has been running it
VcSaJen
2023-09-12 02:03:45
Did they turn it on by default?
jonnyawsom3
2023-09-12 02:27:54
Testing on Waterfox, both CDNs are sending JXL automatically
HCrikki
2023-09-12 02:29:47
tried the cloudinary blog in firefox stable (serves the jpegs and pngs as avif images) and thorium (serves sometime heavier jxl for the same, whole page is still lighter and faster to load)
gb82
https://www.gumlet.com/blog/jpeg-xl/
2023-09-12 07:07:34
their demo is broken, lmao
2023-09-12 07:07:51
it serves `https://demo.gumlet.com/sea.jpeg?format=jxl&v=2` when it should serve https://demo.gumlet.io/sea.jpeg?format=jxl&v=2
yoochan
2023-09-12 07:22:00
indeed 😄 .io instead of .com
Jarek
2023-09-14 06:19:26
https://connect.mozilla.org/t5/ideas/support-jpeg-xl/idc-p/39463/highlight/true#M22999 "jxl flag was pushed to the stable channel but it’s a flag, and jxl animations don’t work 😅" ?
jonnyawsom3
2023-09-14 06:31:56
Not seeing much movement on here, but there are issues open for all the missing features at least https://bugzilla.mozilla.org/show_bug.cgi?id=1539075
Eugene Vert
2023-09-14 06:33:51
It's a little confusing, but > ... but it’s a flag JXL is still not available in stable Firefox, despite the presence of the flag :c
jonnyawsom3
2023-09-14 06:36:21
It won't be in stable until the other issues I mentioned are fixed. Not much use being in stable when it has less functionality than a bitmap
VcSaJen
Jarek https://connect.mozilla.org/t5/ideas/support-jpeg-xl/idc-p/39463/highlight/true#M22999 "jxl flag was pushed to the stable channel but it’s a flag, and jxl animations don’t work 😅" ?
2023-09-14 11:34:23
It's been like that for two years already.
HCrikki
2023-09-14 11:51:23
food for thought. jxl supporters do a lot of asking when IMO jxl patches should be contributed to projects that might be lacking the expertise to implement it themselves
2023-09-14 11:53:33
even with firefox a more current patch couldve helped, and demonstrator unofficial builds of firefox. perhaps something folks from firefox forks could help with ?
w
2023-09-14 11:59:05
the issue is someone has to review it. An up to date patch isn't going to change that
HCrikki
2023-09-15 12:00:37
a working patch is far easier to accept upstream
2023-09-15 12:01:20
it should be made though, not necessarilly merged
Quackdoc
2023-09-15 12:05:27
a lot of firefox forks have up to date patches, that is not the issue
2023-09-15 12:05:51
im not sure but the patches that are sitting in firefox tracker might even still apply cleanly
w
2023-09-15 12:06:07
it's not about just accepting. Someone has to be assigned and spend paid time on it
Quackdoc
2023-09-15 12:06:52
clearly to expensive for firefox xD
w
2023-09-15 12:07:27
it's typical. When it's not priority it'll basically never be seen
Quackdoc
2023-09-15 12:09:18
mozilla pretending that they "prevent chrome from dictating the direction of the web" is massive kekw
2023-09-15 12:09:44
webkit supremacy confirmed xD
w
2023-09-15 12:10:05
my company (Corel) has never heard of jxl
2023-09-15 12:10:57
I'll tell them to add it when it's released on macos/iOS
Quackdoc
2023-09-15 12:10:57
pain
w
2023-09-15 12:11:17
I think they're open to it
Quackdoc
2023-09-15 12:11:29
is it still in beta? I dont follow mac products much
w
2023-09-15 12:12:33
I thought I read here it should be fully released sometime soon
Quackdoc
2023-09-15 12:15:33
what was that new completely independant browser called again? I wonder if that could get jxl support
HCrikki
2023-09-15 12:21:19
please dont say its Arc
Quackdoc
2023-09-15 12:22:40
ah ladybird
2023-09-15 12:22:50
https://github.com/SerenityOS/serenity/tree/master/Ladybird
2023-09-15 12:23:38
oh it does support it kinda
Lucas Chollet
2023-09-15 06:01:23
Kinda is the word, it only supports a subset of modular images
lonjil
2023-09-15 08:41:32
iOS 17 will be released on the 18th, so JXL will become available to millions of people next week.
yoochan
w my company (Corel) has never heard of jxl
2023-09-15 08:48:09
why ?!?! doesn't Corel does some technology watch ?
w
2023-09-15 08:48:19
webp was just added
yoochan
2023-09-15 08:48:27
that's nice 🙂
w
2023-09-15 08:48:32
😂
yoochan
2023-09-15 08:50:19
webp being more than 10 years old, jpeg xl could be expected in a few years 😄
_wb_
lonjil iOS 17 will be released on the 18th, so JXL will become available to millions of people next week.
2023-09-15 09:46:16
How well will the jxl support work at launch? Alpha, proper color management, animation, HDR?
2023-09-15 09:50:23
in Safari Technology Preview on my macbook, it looks like SDR images work, animation works, but alpha is broken, proper color management is broken (or clamps things to sRGB, I dunno), and HDR is broken too
Tirr
2023-09-15 09:58:28
animation didn't work on iPadOS 17 public beta
2023-09-15 09:58:44
tested with animation_icos4d in jpegxl.info test page
2023-09-15 09:59:11
wide color gamut worked
Traneptora
2023-09-15 09:59:22
wide gamut meaning P3? or BT2100?
2023-09-15 09:59:28
since iirc the displays are P3
lonjil
_wb_ How well will the jxl support work at launch? Alpha, proper color management, animation, HDR?
2023-09-15 10:40:11
On the test page, everything except animation works on my ipad
2023-09-15 10:41:09
Funny, webp animation has rendering artefacts, but apng does not.
2023-09-15 10:41:45
Very small images don't render either
jonnyawsom3
w webp was just added
2023-09-15 11:08:43
Odd, I just said on another server how webp has suddenly seen mass adoption in the last few months after being stagnant for a decade
Quackdoc
Traneptora wide gamut meaning P3? or BT2100?
2023-09-15 01:49:27
considering they are fully colormanaged, as long as the image is supported via apple's management pipeline it should be mapped properly I would think no?
2023-09-15 01:49:37
well as properly as possible anyways
Traneptora
Quackdoc considering they are fully colormanaged, as long as the image is supported via apple's management pipeline it should be mapped properly I would think no?
2023-09-15 01:51:17
yea I was just wondering what they meant
Quackdoc
2023-09-15 01:59:36
heres to hoping wayland colormanagement wont be trash so we can actually have a good thing in the color world for one xD
Cacodemon345
2023-09-15 02:43:55
JXL support indeed is a mess on Apple platforms from what I am reading here.
2023-09-15 02:44:09
Not that it will ever reappear in Chrome.
_wb_
Cacodemon345 Not that it will ever reappear in Chrome.
2023-09-15 02:59:47
why do you think that? predicting the future is hard...
HCrikki
2023-09-15 09:07:35
is support for the additional features mandatory for spec compliance? I feel there a huge case to be made for simple jpg-tier jxl images (flat, no transpartency or layers, no animation, within resolution/colorspace limits of jpg and png) since its a target for lossless transcoding from jpeg
username
2023-09-15 09:12:33
that is a pretty risky and undesirable thing to do as it creates fragmentation and if a reduced version of the spec gets popular then there's a chance that only some programs will support all the features
2023-09-15 09:13:45
I think the original spec for JPEG 1 had support for up to 12-bit but no one implemented it so we are stuck with 8-bit JPEGs because almost no one followed the full spec
Nova Aurora
2023-09-15 09:23:06
There's a reason why mozjpeg has a flag "pointless spec compliance" it does a bunch of things no decoder written in this century cares about due to the implementation deviating from the spec
HCrikki
2023-09-15 09:27:52
so undesirable for the decoders, but it seems a provider could still encode simpler lower complexity jxl images if just for consumption by their own decoder (for say a desktop/mobile application or game or an image host service recompressing images uploaded)
jonnyawsom3
2023-09-15 09:38:55
At that point Jpegli probably wouldn't be far off, or just JXL transcoding
uis
Nova Aurora There's a reason why mozjpeg has a flag "pointless spec compliance" it does a bunch of things no decoder written in this century cares about due to the implementation deviating from the spec
2023-09-15 11:49:12
Probably instead of using more it uses less
_wb_
2023-09-16 08:07:56
We will likely at some point define a lightweight profile, which will be what hw decoders can handle
2023-09-16 08:08:47
But for SW implementations it would be best if they just implement everything.
Fraetor
HCrikki so undesirable for the decoders, but it seems a provider could still encode simpler lower complexity jxl images if just for consumption by their own decoder (for say a desktop/mobile application or game or an image host service recompressing images uploaded)
2023-09-16 04:44:46
There is a tool called fjxl that does this. It gets ridiculously fast encode and decode speeds.
2023-09-16 04:45:32
Though it does lossless IIRC.
monad
2023-09-16 06:52:44
fjxl has since been incorporated into cjxl e1
Fraetor
2023-09-16 09:32:40
Including the fast decode?
veluca
2023-09-16 09:38:38
there never was a specialized decode in fjxl 😛
Fraetor
2023-09-17 10:23:05
So it was just really fast anyway? Nice.
veluca
2023-09-17 02:37:00
there are some special-cases in djxl that make it a bit faster for fjxl-produced files
Fraetor
2023-09-17 06:06:04
That must of been what I was thinking of.
Jarek
2023-09-18 07:17:56
iOS 17 with JPEG-XL support released today
jonnyawsom3
2023-09-18 07:39:29
That was fast
username
2023-09-18 08:28:39
the wikipedia page lists JPEG XL as just being added to Safari even though it's system wide from what I remember
2023-09-18 08:29:46
although now that I think about I'm not sure if Apple directly said anywhere that JXL is supported outside of Safari despite the fact it is
jonnyawsom3
2023-09-18 08:32:20
Yeah, it's not listed in the IOS 17 features at all, including the 'full' PDF. Suppose they think it's only usefel to developers
HCrikki
2023-09-18 02:54:21
as far as I know its added everywhere due to how ios, macos and related handle image formats. safari can decode it in websites, gallery can read jxl, games and apps can display jxl images and have them decoded without any extra library added by developpers from apple or the apps
plate
2023-09-18 09:06:41
it works in image viewer at least
2023-09-18 09:08:09
can 'save image' fine too. and uploading image in siskin (xmpp client) picks it up as proper unmodified jxl
2023-09-18 09:09:15
as in ``` % b3sum IMG_0006.jxl F255Eaga0AAwJGk.jxl 1e37b822ad206eb88f3cef6b29fd017675c61282135fafd73b0f818f66da940f IMG_0006.jxl 1e37b822ad206eb88f3cef6b29fd017675c61282135fafd73b0f818f66da940f F255Eaga0AAwJGk.jxl ```
2023-09-18 09:10:32
though siskin doesn't show preview which i suppose is something client-specific
2023-09-18 09:18:53
'files' doesn't show thumbnail, but opens it fine. a bit inconsistent but it mostly works
2023-09-18 09:19:39
like, thumb is visible in camera app
Demiurge
2023-09-19 07:49:26
Best way to view or create JXL on Android?
fab
plate as in ``` % b3sum IMG_0006.jxl F255Eaga0AAwJGk.jxl 1e37b822ad206eb88f3cef6b29fd017675c61282135fafd73b0f818f66da940f IMG_0006.jxl 1e37b822ad206eb88f3cef6b29fd017675c61282135fafd73b0f818f66da940f F255Eaga0AAwJGk.jxl ```
2023-09-19 08:41:22
Shit
HCrikki
Demiurge Best way to view or create JXL on Android?
2023-09-19 09:32:57
likely not best, but as a reader: oupson's jxlviewer, available from fdroid and izzyondroid (fdroid repository with lots of recent apps not qualifying for fdroid's own store)
2023-09-19 09:34:56
theres frameworks such as imagemagick with decoding available but the gallery apps using them need to update them first and then ensure jxl is enabled
2023-09-19 09:47:58
thorium for android is a browser but hey if it works it works
quantefiant#4857
2023-09-19 10:50:12
firefox nightly for android also allows you to enable the experimental flag, and probably even the desktop addon that claims to add third party support which i haven't tested (you'd need to put it in a collection using a firefox account). natively, it only really works for images that are 8bit channel depth, without transparency or animation (which is true of nightly everywhere)
Demiurge
2023-09-19 11:00:22
I honestly don't understand why imagemagick is used so much when there are such better libraries available
2023-09-19 11:02:50
Mainly libvips. And to an extent graphicsmagick as well
HCrikki
2023-09-19 11:11:09
at some point projects need to reinvent themselves. its not easy ditching all that legacy and new cleanroom created equivalents rise, no issue with that
_wb_
Demiurge I honestly don't understand why imagemagick is used so much when there are such better libraries available
2023-09-20 05:27:17
Same reason why the upgrade from IM6 to IM7 is taking ages — once an application has integrated a library with a certain API, it's work to redo the integration now with a different API.
VcSaJen
2023-09-20 07:24:39
There's also the fact that if someone search for some solution, it's almost always on archived IM6 forums. It's never IM7. Plus some changes don't even have any clear reason (why reverse alpha?)
Quackdoc
2023-09-20 07:33:04
It also helps that imagemagick is very well battle tested now (in part thanks to imagetragick). imagemagick gets some decent cve bounty payouts, this makes imagemagick, even if slower, realtively more "safe" to use
2023-09-20 07:34:12
not to say that libvips or graphicsmagick don't enjoy a large amount of the same support, it's just if they do, it's not as publicized
_wb_
2023-09-20 08:47:35
The 0=opaque thing in IM6 is confusing and I think it was only that way so zero-initializing a buffer and then not touching alpha gives you an opaque image instead of a fully transparant one. But IM7 went from fixed interleaved RGBA to planar, if I understand correctly, so no longer needed to have a wonky alpha convention.
bonnibel
2023-09-20 03:01:59
also i dont think libvips or gm have polar/ewa resampling, though i doubt most people care about that
_wb_
2023-09-21 07:21:31
The day after the iOS 17 launch (Tuesday Sept 19) we counted 181 million user agents with image/jxl support, up from 34 million on the same day a week before (Sept 12).
2023-09-21 07:21:47
Curious to see the numbers next week.
HCrikki
2023-09-21 07:24:12
how can that be counted?
spider-mario
2023-09-21 07:24:20
the 34 million are already slightly surprising, do that many people install the iOS betas?
_wb_
2023-09-21 07:35:52
sorry it's just request counts
2023-09-21 07:36:14
so in hits, not unique user agents
Nova Aurora
HCrikki how can that be counted?
2023-09-21 07:48:04
Cloudinary's servers logging the requests for images coming in
Quackdoc
2023-09-21 07:49:09
shopify is probably a bit happy right now since they're adoption is paying off now hehehe
lonjil
2023-09-21 07:49:30
does anyone know a shopify shop I can visit to see it in action?
Quackdoc
2023-09-21 07:50:08
iirc arace.tech uses it
Nova Aurora
_wb_ sorry it's just request counts
2023-09-21 07:50:12
Do you have statistics for how many requests an average useragent generates per day?
Quackdoc
2023-09-21 07:50:55
yeah arace.tech uses it https://arace.tech/products/milk-v-mars
lonjil
2023-09-21 07:53:34
I got a webp from that page RIP
Quackdoc
2023-09-21 07:54:34
I get jxl, how do I know? because on vanilla firefox the jxl extension is bugging it out lmao
lonjil
2023-09-21 07:55:17
lol
Nova Aurora
2023-09-21 07:56:02
I have that extension, and I get a webp
Quackdoc
2023-09-21 07:56:56
interesting
2023-09-21 07:57:42
iirc I modified my firefox header to always report jxl support so maybe it's that? I have no idea
_wb_
Nova Aurora Do you have statistics for how many requests an average useragent generates per day?
2023-09-21 08:02:52
not right here. Anyway absolute numbers don't say that much maybe — we went from 0.18% jxl supporting user agents on 2023-09-12 to 1.16% jxl supprting user agents on 2023-09-19
2023-09-21 08:03:39
that number will go up as people are still doing the upgrade, of course
HCrikki
Nova Aurora I have that extension, and I get a webp
2023-09-21 08:25:26
that extension needs an update, even on the info site it doesnt display all jxls available though they exist and has trouble with sites spoofing the real type of their images (ie claiming jpg are webps)
lonjil
2023-09-21 08:26:22
maybe it's going by accept header order /j ``` Accept: image/webp,image/avif,image/jxl,image/heic,image/heic-sequence,video/*;q=0.8,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5```
Nova Aurora
Also https://github.com/libjxl/libjxl/issues/2784
2023-09-21 09:30:29
Did any of the core team respond to this?
jonnyawsom3
2023-09-21 10:41:09
Yes
Quackdoc
2023-09-23 01:03:53
pain
Nova Aurora
2023-09-23 02:40:42
<@794205442175402004> crypto promotion
_wb_
2023-09-23 06:26:24
Thanks, deleted it and kicked the spammer
username
2023-09-23 06:36:30
what about with the updated patch that someone posted in the comments [here](https://bugzilla.mozilla.org/show_bug.cgi?id=1709814) ?
2023-09-23 06:40:02
ah I see
_wb_
2023-09-23 06:41:06
That looks like it is using a non-premultiplied buffer and rendering it as if it is premultiplied
Quackdoc
2023-09-23 07:12:50
waterfox renders it fine
w
2023-09-23 07:16:50
works on my firefox
2023-09-23 07:37:26
yes that one fixes it
username
2023-09-23 08:37:01
wait what about D122159?
yoochan
2023-09-23 08:42:57
are these patches applied by the official firefox ?
2023-09-23 08:43:24
I missed something... is the official 117.0.1 capable of displaying jpeg xl ?
username
2023-09-23 08:45:04
nightly versions of firefox have had basic support for jpeg xl for a while but there are pending patches to make the support better however mozilla has not merged them into firefox
yoochan
2023-09-23 08:46:07
ok, it didn't changed overnight 😄
2023-09-23 09:20:13
I didn't know open build services 🙂 I'll have a look. I understood the sources of firefox and the build itself takes some space on the disk
w
2023-09-23 10:38:34
I don't think the order in the accept header matters
2023-09-23 10:39:15
but I guess it's up to website on how to interpret it
lonjil
2023-09-23 11:07:47
This is the header Safari sends: ``` Accept: image/webp,image/avif,image/jxl,image/heic,image/heic-sequence,video/*;q=0.8,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5```
Quackdoc
2023-09-23 12:10:06
you should modify accept headers should present the format you want first, this simply helps because programmers are not gods and people can make mistakes.
w
2023-09-23 12:17:46
yeah but first to last or last to first
jonnyawsom3
2023-09-23 12:21:12
Also depends what order the HTML is listed in if they're just using picture tags rather than automatic CDN
bonnibel
2023-09-23 02:04:10
it says that values in the Accept header are prioritized first by q value (which is 1 when not specified), and then by specificity
2023-09-23 02:14:58
``` MIME type q image/webp 1 image/avif 1 image/jxl 1 image/heic 1 image/heic-sequence 1 video/* 0.8 image/png 1 image/svg+xml 1 image/* 0.8 */* 0.5 ```
2023-09-23 02:16:14
so it's asking for webp/avif/jxl/heic/png/svg with equal weight, then just any image or video, then any file
2023-09-23 02:17:36
picking between webp/avif/jxl/heic/png/svg is fully up to the server, sometime they're smart and send whichever one they have they think is best, sometimes they're dumb and just send the first one listed they have
_wb_
2023-09-23 02:22:02
A server can basically always do what they want with the Accept header
2023-09-23 02:47:15
Yeah we only use it to know what formats are supported, not to prioritize one over the other
2023-09-23 02:48:13
Priority is useful for something like the (human) language of a page, but for formats, not so much imo.
2023-09-23 02:48:46
Unless it would really be a user preference or if it makes the difference between hw decode or not (for video)
Demiurge
2023-09-23 08:13:56
Uh...
2023-09-23 08:14:32
So I'm using the moto camera app and it takes pretty buttfugly blurry images...
2023-09-23 08:14:49
Does anyone have a camera app they recommend?
2023-09-23 08:15:44
JXL support would be nice obviously but I don't expect anything nice from the globohomo ecosystem
2023-09-23 08:16:03
Sometimes known as Google Play Store
fab
2023-09-23 08:21:22
Discord
2023-09-23 08:21:27
Simple camera
2023-09-23 08:22:17
https://play.google.com/store/apps/details?id=com.changpeng.pro.camera.hd
quantefiant#4857
2023-09-24 01:04:39
it seems i can never get a straight answer for which android *devices* support RAW though
HCrikki
2023-09-24 01:25:12
Expert RAW Camera by samsung works on a small number of galaxy flagships. once installed, it can be invoked as a mode in the regular camera
Quackdoc
2023-09-24 01:55:57
tfw app says raw but its still denoised T.T
quantefiant#4857
2023-09-24 01:57:04
i *can* turn off denoising in open camera, but i can't save truly losslessly (the png option converts from 100% quality jpeg)
w
2023-09-24 02:04:56
the images being in dng raw isn't going to magically make them look good
2023-09-24 02:05:22
at some point you just give up because you're dealing with a tiny phone camera
2023-09-24 02:05:54
imo it's better to have the processing esp if you can get Google's processing
diskorduser
fab https://play.google.com/store/apps/details?id=com.changpeng.pro.camera.hd
2023-09-24 02:53:13
Does this support jxl?
quantefiant#4857 it seems i can never get a straight answer for which android *devices* support RAW though
2023-09-24 02:55:24
If gcam works on the phone, it should support raw.
Quackdoc
w at some point you just give up because you're dealing with a tiny phone camera
2023-09-24 02:58:37
it does give more flexibility however. I used to use an app called motioncam which let you record raw (dng sequences compressed with zstd). am impressed with how much you could phenagle out of it
w
2023-09-24 02:59:23
just focus on taking the photo
quantefiant#4857
diskorduser If gcam works on the phone, it should support raw.
2023-09-24 06:40:02
that's a group that doesn't completely overlap with what HCrikki said, especially through official channels for gcam (which only allow pixel devices) so > it seems i can never get a straight answer
Quackdoc
2023-09-24 06:42:22
camera2api reports whether or not the device supports "raw" capture
2023-09-24 06:42:27
nearly all modern devices should
quantefiant#4857
2023-09-24 06:45:43
i have partial camera2 support on this 2019 midrange samsung (a30, android 11) arguably since it's near OS EOL, it's not modern? but i plan on getting another year-of-release midrange samsung next time and i just get the feeling it still won't support raw
Quackdoc
2023-09-24 06:47:00
download a camera2api checker app and see
quantefiant#4857
2023-09-24 06:48:09
with this one? i did. with future phones i just. want to check *before* buying. and i've been having this whole conversation in the wrong channel
Quackdoc
2023-09-24 06:49:02
ah you can chheck here https://camera2probe.com/list
2023-09-24 06:49:23
not all devices are on this, but most popular ones are
nicosemp
2023-09-24 07:45:54
I understand that JXL support on iOS/iPadOS 17 doesn't include many useful JXL features. Is there a page with image demos for all these features to quickly tell what's there and what's missing?
fab
2023-09-24 09:19:20
The raw on this app is ugly
2023-09-24 09:19:30
Not even 1mpx of full resolution
2023-09-24 09:19:42
Unless you want selfies
2023-09-24 09:20:01
But selfies chenpeng is the only one good
2023-09-24 09:20:12
But zero filters
2023-09-24 09:20:30
You will see 6mpx of ugliness
2023-09-24 09:20:51
The ones i recommend are more updated
2023-09-24 09:21:00
Freedcam is also on the store
2023-09-24 09:21:17
But the app i have are on another level
quantefiant#4857 i have partial camera2 support on this 2019 midrange samsung (a30, android 11) arguably since it's near OS EOL, it's not modern? but i plan on getting another year-of-release midrange samsung next time and i just get the feeling it still won't support raw
2023-09-24 09:22:20
A30 good for panoramas
2023-09-24 09:22:42
If you want to take photos phone shouldn't be used
2023-09-24 09:23:15
Focus on get a better app that is a ssexons in to do
2023-09-24 09:23:57
Opencamera noise denoising even at 100 iso it is broken
2023-09-24 09:24:34
It saves full resolution
2023-09-24 09:24:35
But it crashes
2023-09-24 09:24:36
Literally is worse on every version
2023-09-24 09:24:53
But I have bad Xiaomi with Samsung gn1
2023-09-24 09:25:20
My phone is for selfie filters
2023-09-24 09:25:31
Not for doing what Samsung does
quantefiant#4857
2023-09-24 09:25:31
thanks for the advice, i'm just a hobbyist that likes to mess with image data. if i needed good photography i'd use a DSLR
fab
quantefiant#4857 thanks for the advice, i'm just a hobbyist that likes to mess with image data. if i needed good photography i'd use a DSLR
2023-09-24 09:26:28
JPEG XL just do s9 d 0.823 i 0.4
2023-09-24 09:26:35
Unless JPEG XL 2 comes
2023-09-24 09:27:01
Codecs will evolve and Jon will publish an updated standard before AV4
2023-09-24 09:27:15
Developers don't spoiler work
Quackdoc it does give more flexibility however. I used to use an app called motioncam which let you record raw (dng sequences compressed with zstd). am impressed with how much you could phenagle out of it
2023-09-24 09:28:16
To get raw only cameraraw works
2023-09-24 09:30:08
Photon camera is just 32bit with opencamera based downsamples
2023-09-24 09:30:51
And without 41 frames motion and gn2 Samsung and higher processor than i3 330m or snapdragon 780g
2023-09-24 09:30:57
It will take nothing
2023-09-24 09:31:03
Only a photo
2023-09-24 09:31:10
With ugly quality
2023-09-24 09:31:21
And also need to be downloaded on Telegram
2023-09-24 09:32:00
Also it get updated every 2 year by university of china
2023-09-24 09:32:12
wIth Java code
2023-09-24 09:32:37
Imagine encoding 200mpx hp3 photos on mit13
2023-09-24 09:33:07
It will not open and you need february 2025 to get a build
2023-09-24 09:33:39
I don't know even if it has Android 14 API
HCrikki
Quackdoc camera2api reports whether or not the device supports "raw" capture
2023-09-24 11:10:09
many require rooting to bypass increasingly common chiplevel filtering (chinese brands mainly) and capture raw
2023-09-24 11:11:21
imo the only player consistently excelling in pro photography is sony with their xperia pro line. raw, 12bits (most raw-capable phones capture in 10bit), hdr, expert options and everything. so damn good most system info apps fail to report everything
Quackdoc
HCrikki many require rooting to bypass increasingly common chiplevel filtering (chinese brands mainly) and capture raw
2023-09-24 11:15:12
hence the quotations on raw, not that raw really makes sense as a term, raw is more of a marketing buzzword at this point
nicosemp
2023-09-24 12:44:37
That would be great, but I'm not sure how complicated it would be to create. It would be nice to have even just a reduced list of things like animations, progressive decoding and whatever makes sense to have working in a browser
fab
HCrikki imo the only player consistently excelling in pro photography is sony with their xperia pro line. raw, 12bits (most raw-capable phones capture in 10bit), hdr, expert options and everything. so damn good most system info apps fail to report everything
2023-09-24 01:36:02
There is a vivo or 24 ultra with 18bit pipeline and hdr to raw
2023-09-24 01:36:25
Those are rumors but vivo has 990imx sony specialized
2023-09-24 01:36:48
And the Galaxy s24 ultra said is even Better
2023-09-24 01:36:55
Like 52 mpx
2023-09-24 01:37:04
The iPhone takes 24mpx photos
2023-09-24 01:37:16
I don't know the quality of s24 ultra
2023-09-24 01:37:29
Is from may that HDblog said its retrocessed
2023-09-24 01:37:44
And that has two hardware options
2023-09-24 01:38:23
And also the camera was destined to be used on another year
2023-09-24 01:38:44
So s25 ultra will have s24 ultra cam
2023-09-24 01:39:26
And anyway the processor it doesn't change nothing relative to camera
2023-09-24 01:39:40
Samsung has already the s25
2023-09-24 01:39:46
And s23 ultra
2023-09-24 01:40:02
Is s23 ultra more efficient
2023-09-24 01:40:11
So you need a battery charger
2023-09-24 01:40:19
And only 20watt charge
2023-09-24 01:40:31
600 euros more than the iPhone
2023-09-24 01:40:40
Those aren't rumours
2023-09-24 01:40:50
At least 7 months we know them
2023-09-24 01:41:13
And official photos from Samsung not leak by an author were released 2 months ago
2023-09-24 01:41:22
So we knows the colourations
2023-09-24 01:41:32
And price super high
Quackdoc
2023-09-24 01:41:35
an alternative to python http server is miniserve
fab
2023-09-24 01:41:39
You pay for the nm
Quackdoc
2023-09-24 01:41:40
miniserve is super nice
fab
2023-09-24 01:41:47
And qualcoom gen 3
2023-09-24 01:42:02
Will be out on 26th october 2023
2023-09-24 01:42:06
On October
2023-09-24 01:42:35
And no rumours about the location and requirements for the processors
2023-09-24 01:42:59
And on September gen 3 is already deployed
2023-09-24 01:43:31
So s24 ultra will enter italian market on november
_wb_
2023-09-24 02:10:04
Thanks for the testing! I hope we can soon finalize the new decode API w.r.t. color management, and then update the integrations so they do everything in a correct way.
diskorduser
Quackdoc an alternative to python http server is miniserve
2023-09-24 02:29:34
Does it support http resume
2023-09-24 03:00:49
Ok. So twisted (twistd) is good enough for me now.
Demiurge
2023-09-25 08:03:16
I think image booru will love jpeg xl lol, it should reduce costs of running such a site in a very real way
2023-09-25 08:03:54
And those are webmasters that don't have a lot of money to begin with
2023-09-25 08:04:41
Honestly I am real surprised there isn't more support from booru software and administrators
Quackdoc
2023-09-25 08:07:38
thats because most boorus are old or just dont care. a software called blazebooru uses image-rs I have a fork of that using the image-rs work. and it works ok
w
2023-09-25 08:37:04
the cost difference is pretty negligible even on the terabyte scale
2023-09-25 08:39:27
I think it may only matter if all individual images are really big and actually affects ux
2023-09-25 08:41:48
and if they are originally png
username
2023-09-25 08:43:41
sometimes Ill open dozens and dozens of images on booru type sites and it's annoying watching them all load in incredibly slow and in some cases ill even get rate limited by the site which is also annoying
HCrikki
2023-09-25 10:51:35
sites retaining original copies of the files are still better off internally storing them as jxl versions in place of bloated png and highest quality jpg
2023-09-25 10:54:45
what one calls bandwidth is another's storage. higher efficiency would help imageboards and image hosts (like say photobucket) increase margins or simply stop taking a loss
Quackdoc thats because most boorus are old or just dont care. a software called blazebooru uses image-rs I have a fork of that using the image-rs work. and it works ok
2023-09-25 10:56:51
storing/serving jxl? do you have a link to a live install?
Quackdoc
2023-09-25 11:09:58
not atm
jonnyawsom3
2023-09-25 11:49:29
I know of the Doujins and LiveBooru sections on <@288069412857315328>'s site, also displays space savings and encode options per image/manga https://grass.moe/
w
2023-09-25 11:51:22
only traffic is me and it is not worth it even if it were 10000 people
2023-09-25 11:51:47
but it's fun novelty
jonnyawsom3
2023-09-25 12:25:10
Seems like a good weekend project for the more experienced coders in here, while also giving a nice boost to adoption https://github.com/OpenImageIO/oiio/issues/3908
Quackdoc
2023-09-25 12:34:27
I was looking into oiio support awhile ago, shouldn't be too hard to add but I never got the time to look into doing it
yoochan
2023-09-25 01:06:37
someone knows the currently popular manga/comics readers under windows ?
w
2023-09-25 01:09:23
just use tachiyomi under WSA
yoochan
2023-09-25 01:10:10
I was looking for the ones which are NOT compatible with jxl yet to flood their issue trackers 😄
2023-09-25 01:10:40
but popular amongst non geeks in order to maximize the efficiency
2023-09-25 01:11:28
(I didn't even know WSA was a thing... I'm so 2010)
Demiurge
2023-09-25 02:30:13
Wouldn't the space savings from JXL directly reduce the cost of running the image board by that same proportion?
w
2023-09-25 02:53:03
either fixed cost or not that much of a difference due to fixed base cost
2023-09-25 02:59:25
and egress is basically free now
2023-09-25 03:00:23
i imagine it's more like you have options of 10tb, 50tb, etc. and you choose 10tb
2023-09-25 03:00:33
it's not like you can choose 7 tb
2023-09-25 03:00:43
just because your data is only 7tb
2023-09-25 03:02:03
even for object storage the savings are fractions of pennies
Demiurge
2023-09-25 03:04:51
I see
lonjil
2023-09-25 03:06:08
Approximately the cheapest rates for reliable bulk cloud stuff is $5/TB/month for storage and $10/TB for egress bandwidth.
Quackdoc
2023-09-25 04:26:15
it depends a lot on how you are hosting and your traffic and how you store the images
2023-09-25 04:26:31
for some people jxl would be peanuts, but for others it could make a massive difference
lonjil
2023-09-25 05:16:37
Yes, storage and bandwidth are often major expenses for actual proper websites that lots of people visit.
Cacodemon345
2023-09-25 06:20:41
Not sure how I feel about OpenImageIO given the apparent lack of APNG support.
jonnyawsom3
2023-09-25 06:22:37
At least they seem to be very open to pull requests
HCrikki
yoochan someone knows the currently popular manga/comics readers under windows ?
2023-09-25 06:55:44
comicrack
2023-09-25 06:56:54
it has a plugin that adds decoding of jpeg-xl and avif (separately downloadable?). based on old code though https://github.com/faqy003/ComicRack-Plugin-MIFS
2023-09-25 06:59:05
author kinda disappeared with the site this year but you can grab comicrack wherever
2023-09-25 07:02:57
theres also YACreader. actively developped, seems a quick dll insert adds jxl decoding (not part of regular install yet?)
2023-09-25 07:02:59
https://github.com/YACReader/yacreader/issues/385
2023-09-25 07:09:17
yac has an upcoming release, maybe worth asking to add jxl out of the box or handing him working updated code to merge ?
2023-09-25 10:17:52
macos 14 'Sonoma' releases tomorrow, with jpeg-xl read support available across all operating system
2023-09-25 10:20:08
some articles coming up oddly dont mention jxl. its like they go the extra mile to deny its existence and importance
Nova Aurora
2023-09-25 10:37:29
🤷‍♀️ Normies don't care about a new file format that much especially if it's not going to be the default
HCrikki
2023-09-25 10:58:46
the gains are passively obtained even if you dont care about those at all and have no idea what formats are even used
2023-09-25 11:00:18
with image formats the public discourse is commonly about bandwidth but whats bandwidth to is someone else's storage. take dvd, bluray and newer codecs, noone ever opposed their introduction even though they had no web-facing use at all back then
jonnyawsom3
HCrikki some articles coming up oddly dont mention jxl. its like they go the extra mile to deny its existence and importance
2023-09-25 11:25:15
I think most of that is from Apple not listing JXL in the features, or anywhere in the changes when I tried to look
Quackdoc
Cacodemon345 Not sure how I feel about OpenImageIO given the apparent lack of APNG support.
2023-09-26 01:38:13
apng is more or less a toy for oiio's usecase and userbase, but they would indeed probably be open to a pr
lonjil
HCrikki with image formats the public discourse is commonly about bandwidth but whats bandwidth to is someone else's storage. take dvd, bluray and newer codecs, noone ever opposed their introduction even though they had no web-facing use at all back then
2023-09-26 07:39:54
I don't understand what you're trying to say. Why would anyone care about the web in relation to DVD or Bluray? Newer proprietary codecs are used by TVs and broadcasting if nothing else, so they get a lot of use regardless of the web.
joppuyo
nicosemp I understand that JXL support on iOS/iPadOS 17 doesn't include many useful JXL features. Is there a page with image demos for all these features to quickly tell what's there and what's missing?
2023-09-26 11:12:06
I would also love to see a test page with wide color (P3/adobe RGB) and HDR images. it seems that in general apple operating systems handle wide color spaces and HDR really nicely compared to Android, Linux or Windows
jonnyawsom3
2023-09-26 11:20:57
https://people.csail.mit.edu/ericchan/hdr/hdr-jxl.php
Quackdoc
joppuyo I would also love to see a test page with wide color (P3/adobe RGB) and HDR images. it seems that in general apple operating systems handle wide color spaces and HDR really nicely compared to Android, Linux or Windows
2023-09-26 11:39:46
thats because apple is the only system with a fully colormanaged pipeline, linux kinda has some hacks with colord but it's crap, android kinda gets away with it since everything pretty much runs fullscreen it means each app can more or less take exclusive accsess for the color pipeline. Windows has opt in color management however this only kinda works for applications that are colormanaged themselves, it's not that great but better then linux which has, like I said colord and thats it, Wayland should hopefully change this sometime in the next twenty years xD
joppuyo
Quackdoc thats because apple is the only system with a fully colormanaged pipeline, linux kinda has some hacks with colord but it's crap, android kinda gets away with it since everything pretty much runs fullscreen it means each app can more or less take exclusive accsess for the color pipeline. Windows has opt in color management however this only kinda works for applications that are colormanaged themselves, it's not that great but better then linux which has, like I said colord and thats it, Wayland should hopefully change this sometime in the next twenty years xD
2023-09-26 11:46:27
kinda reminds me of HDPI stuff in windows. it's today better than in 2016 but you way too often run into apps that have broken UI unless you go to the compatibility settings and force them to use system DPI management. but apple was like "fuck it, render everything at 2x then and scale the framebuffer to monitor resolution" and basically all the apps ran pixel doubled until the developers implemented HDPI support with an explicit flag
w
2023-09-26 11:47:33
windows now also has an option to do system-wide color management
Quackdoc
2023-09-26 11:50:54
oh? I wonder if it's any good.
spider-mario
joppuyo I would also love to see a test page with wide color (P3/adobe RGB) and HDR images. it seems that in general apple operating systems handle wide color spaces and HDR really nicely compared to Android, Linux or Windows
2023-09-26 01:25:46
also https://gregbenzphotography.com/hdr/#gallery1
Quackdoc thats because apple is the only system with a fully colormanaged pipeline, linux kinda has some hacks with colord but it's crap, android kinda gets away with it since everything pretty much runs fullscreen it means each app can more or less take exclusive accsess for the color pipeline. Windows has opt in color management however this only kinda works for applications that are colormanaged themselves, it's not that great but better then linux which has, like I said colord and thats it, Wayland should hopefully change this sometime in the next twenty years xD
2023-09-26 01:27:08
pre-Windows 11 color management is similar to what it’s like on Linux/X11 as far as I know
2023-09-26 01:27:19
it’s the equivalent of what you get with colord+lcms2
2023-09-26 01:27:42
you can ask for the ICC profile for the output device (as with colord), and then you can create and execute colour transforms to that profile (as with lcms2)
_wb_
2023-09-26 02:32:59
but besides doing color management correctly, does it have > 8-bit buffers?
Quackdoc
2023-09-26 04:34:36
ill have to look into how win11 handles it for sure
gb82
2023-09-26 06:34:03
Just got macOS Sonoma installed, it seems like JPEG-XL images open in Safari by default? Seems kinda weird
2023-09-26 06:44:18
I guess it doesn't list Preview as an app with JXL support, even though it opens sRGB JXLs by default without issue
_wb_
2023-09-27 05:49:05
Feel free to open bug reports (with Feedback Assistent or how do they call it) so these things get sorted out — that's probably an easy fix for them...
_wb_ not right here. Anyway absolute numbers don't say that much maybe — we went from 0.18% jxl supporting user agents on 2023-09-12 to 1.16% jxl supprting user agents on 2023-09-19
2023-09-27 04:35:10
Now we are at 3.61% of user agents supporting JXL.
uis
Quackdoc apng is more or less a toy for oiio's usecase and userbase, but they would indeed probably be open to a pr
2023-09-29 01:44:14
AFAIK there is new PNG draft with APNG being part of it
Quackdoc thats because apple is the only system with a fully colormanaged pipeline, linux kinda has some hacks with colord but it's crap, android kinda gets away with it since everything pretty much runs fullscreen it means each app can more or less take exclusive accsess for the color pipeline. Windows has opt in color management however this only kinda works for applications that are colormanaged themselves, it's not that great but better then linux which has, like I said colord and thats it, Wayland should hopefully change this sometime in the next twenty years xD
2023-09-29 01:52:07
Wayland is part of problem, not a solution. What's wrong with colord?
190n
2023-09-29 03:34:32
how's wayland part of the problem? they're working on color management as we speak
gb82
_wb_ Feel free to open bug reports (with Feedback Assistent or how do they call it) so these things get sorted out — that's probably an easy fix for them...
2023-09-29 04:49:07
Quackdoc
uis Wayland is part of problem, not a solution. What's wrong with colord?
2023-09-29 06:31:25
colord relies on the applications to do transforms and conversion. applications cant even decide in when to use a srgb curve or a pure gamma2.2. its even worse when the application does not support the display profile because then it doesn't become color managed at all
2023-09-29 06:31:29
completely unusable
XAMPPRocky (she/her)
2023-09-29 07:16:02
Hello 👋 Since there are now devices in the wild supporting JXL, is there a a recommended idiomatic approach for transitioning images on websites to prioritise the JXL version, and what the appropriate fallbacks should be?
_wb_
2023-09-29 07:20:04
The easiest way is to use <picture> with a jxl image and a jpeg fallback (or if it has alpha, you could do jxl with webp/avif and png fallbacks).
Quackdoc
2023-09-29 07:24:54
~~only serve jxl so we can spam report sites as broken to firefox and chrome~~
spider-mario
190n how's wayland part of the problem? they're working on color management as we speak
2023-09-29 10:05:50
that they are only doing this now is somewhat illustrative of the problem, see some of gwgill’s (argyllcms author) and fhoech’s (DisplayCAL) replies in this thread: https://discuss.pixls.us/t/wayland-color-management/10804
Quackdoc
2023-09-29 10:25:42
they recently posted a doc detailing the general process that a compositor should (could?) take https://gitlab.freedesktop.org/pq/color-and-hdr/-/blob/bb44957a29c49232c3f94530e92617f6e8fc9d36/doc/color-management-model.md
2023-09-29 10:25:51
it's still pr stage
2023-09-29 10:26:45
it's not the most useful document in the world, but at least there is some progress, in the end I feel like any color work is still gonna be forced to use stuff like decklink still
uis
2023-09-29 12:44:19
Well, only application knows color space of original picture. AFAIK there is libcolord for converting colors between color spaces and it supports all color spaces that colord supports because it is colord. And if some color space is not supported, then same thing can happen to wayland.
Quackdoc colord relies on the applications to do transforms and conversion. applications cant even decide in when to use a srgb curve or a pure gamma2.2. its even worse when the application does not support the display profile because then it doesn't become color managed at all
2023-09-29 12:44:27
.
2023-09-29 12:44:52
Discord... Never works properly.
2023-09-29 12:52:44
> the compositor does on-demand color-corrections from buffer colorspace to display colorspace only for visible frames (saves a lot of perf), possibly on GPU (for now, AFAIK, graphic libs are not multi-threaded and super slow). Hmm.... Sounds nice
BlueSwordM
Quackdoc ~~only serve jxl so we can spam report sites as broken to firefox and chrome~~
2023-09-29 02:57:03
Brute force way of doing this. I suggested this way before, but it's a nuclear method and could likely cause issues.
w
2023-09-29 03:04:26
isnt that the point
Demiurge
2023-09-29 03:09:45
But that's what Google did to force webp down our collective throats
2023-09-29 03:09:57
And it apparently worked
2023-09-29 03:10:31
They started using it with no fallback
lonjil
2023-09-29 03:11:11
only when the user agent was chrome, I thought
Demiurge
2023-09-29 03:11:12
And then everyone cucked and adopted it even though they were "against" it
Quackdoc
uis Well, only application knows color space of original picture. AFAIK there is libcolord for converting colors between color spaces and it supports all color spaces that colord supports because it is colord. And if some color space is not supported, then same thing can happen to wayland.
2023-09-29 03:13:41
yes only application knows, but the application should merely say "this is what the image is so render me like this please"
uis
Quackdoc yes only application knows, but the application should merely say "this is what the image is so render me like this please"
2023-09-29 03:14:38
This sounds more like X-way than Wayland-way
Demiurge
lonjil only when the user agent was chrome, I thought
2023-09-29 03:14:58
That would make it even weirder for browsers like Firefox to adopt it when they invested money into making a jpeg encoder to prove webp sucks and can't even beat jpeg
Quackdoc
2023-09-29 03:15:03
nah, the x way is to just crap itself
BlueSwordM Brute force way of doing this. I suggested this way before, but it's a nuclear method and could likely cause issues.
2023-09-29 03:15:13
issues are intentionally the goal
Demiurge
2023-09-29 03:15:50
The app should not be expected to be aware of and manage hardware such as monitors.
lonjil
Demiurge That would make it even weirder for browsers like Firefox to adopt it when they invested money into making a jpeg encoder to prove webp sucks and can't even beat jpeg
2023-09-29 03:15:52
webp does beat jpeg at some quality levels, and webp lossless beats png by a good bit
username
2023-09-29 03:17:28
sadly though most websites and CDNs don't make use of lossless WebP, the only thing I can think of that uses them is Fandom wikis
Demiurge
2023-09-29 03:17:34
Webp lossless would be nice if it wasn't part of webp and all the limitations it has and the useless lossy algo that was the original form of webp
Quackdoc
Demiurge The app should not be expected to be aware of and manage hardware such as monitors.
2023-09-29 03:18:09
I dont think the app should be expected to do much, app devs can often be stupid, relying on them too much
lonjil
2023-09-29 03:18:13
Tumblr uses lossless webp for animated content
Demiurge
2023-09-29 03:18:25
The lossless mode is literally a completely separate codec that was added to webp later instead of being its own format like would make sense
2023-09-29 03:22:10
All that apps and app developers should be expected to do is, pass along the color space information of the content they are displaying so that the graphics pipeline (video driver, compositor, whatever) can convert that to be displayed correctly on the attached video devices. Remember that the app usually doesn't even need to know if it's being displayed on multiple monitors simultaneously for example in mirror mode. That is really up to the compositor to manage which windows show up on which monitors
2023-09-29 03:22:36
Or even have a window partially on two monitors as you drag and drop across monitors
2023-09-29 03:23:25
Obviously all that should be seamless and managed by the video drivers and/or compositor, not application. That is absolutely braindead to expect the application to have to be aware of that
2023-09-29 03:23:43
Unless it is a monitor calibration application...
Quackdoc
Demiurge All that apps and app developers should be expected to do is, pass along the color space information of the content they are displaying so that the graphics pipeline (video driver, compositor, whatever) can convert that to be displayed correctly on the attached video devices. Remember that the app usually doesn't even need to know if it's being displayed on multiple monitors simultaneously for example in mirror mode. That is really up to the compositor to manage which windows show up on which monitors
2023-09-29 03:24:31
well, kinda, I think that is the approach most general software should use, but software using things like ocio ofc will do internal conversions themselves, it will be up to the user to properly specify output and stuff
Demiurge
2023-09-29 03:26:52
All the application should do is announce, "I'm displaying content in this ABC color space," and that's enough information for the rest of the system to display it correctly. And if an app doesn't announce what color space it uses then maybe there should be an implied color space to assume if not specified, plus a warning somewhere that the compositor can throw saying that a window was displayed with implied color space information.
2023-09-29 03:27:55
If an application displays content in multiple color spaces then it should be the job of the application to convert everything to a single color space for display.
Quackdoc
2023-09-29 03:28:21
you would typically imply a pure 2.2 if it doesn't respond with a color profile
Demiurge
2023-09-29 03:28:52
Or maybe create a sub region of the window with a different color space
Quackdoc
2023-09-29 03:29:28
that should be possible with wayland surfaces I don't really care enough to look into that yet since the color management protocol is still far away lol
2023-09-29 03:30:05
as a related side note to that doing "dumb" stuff could break things like xyb profiles
Demiurge
2023-09-29 03:31:30
I guess if you have mixed content with different colorspace information within the same app, then the app has to be responsible for converting everything to 1 color space for display, and there should be a way to ask the compositor for a suggested color space maybe...
2023-09-29 03:33:06
Or maybe a simpler solution exists, but if there is I can't think of it
Quackdoc
2023-09-29 03:33:58
> there should be a way to ask the compositor for a suggested color space maybe... This is a GREAT solution, too bad you are talking about wayland developers
2023-09-29 03:34:08
too insecure for them LOL
Demiurge
2023-09-29 03:34:10
Like having multiple regions of different color space within the same window seems like it would be overcomplicating things compared to letting the app be responsible
Quackdoc too insecure for them LOL
2023-09-29 03:35:55
Well it should be an optional suggestion... the app should be able to just announce what color space it wants to use and the compositor should ideally just deal with it...
Quackdoc
2023-09-29 03:36:54
yeah optional things are still no go, wayland cant even agree on how to handle privileged extensions. wayland is super frustrating in general since its like it has the potential to be so good, but then there are so many boneheaded decisions holding it back
Demiurge
2023-09-29 03:38:56
Like how it wants to replace X without actually doing any of the actual effort of making a replacement for it?
2023-09-29 03:39:50
It's all just theory, not useable software like libweston
2023-09-29 03:40:47
If libweston was actually useful for making Wayland compositors, people would actually use it...
2023-09-29 03:43:46
Pretty sure more people use third party libraries like libsway since they actually do more useful work and effort that people actually want done for them when writing a compositor
2023-09-29 03:48:12
There should be a way for the compositor to change its color space suggestion too
2023-09-29 03:48:37
To the app
Quackdoc
2023-09-29 03:48:54
in the end, both X and wayland are just both crap
Demiurge
2023-09-29 03:49:46
Yeah, that's why you can't convince people to use Linux, because convincing people to use crap is hard
2023-09-29 03:50:45
Also it isn't all about Linux either
Quackdoc
2023-09-29 03:50:53
everything is crap, I miss the days of windows xp where I was satisifed with computing T.T
Demiurge
2023-09-29 03:51:35
Linux users should keep in mind that one day they might want to use a different kernel
2023-09-29 03:51:54
Instead of sticking with the same old code forever
2023-09-29 03:52:01
And the same old mismanagement
2023-09-29 03:52:53
Not saying that there's anything wrong with Linux right now, although there probably is a lot of things wrong at a technical level that will not get fixed because of compatibility with old crap
2023-09-29 03:54:40
But you know, other systems are out there besides Linux and they do a lot of things better in certain specific ways, like OpenBSD for example.
2023-09-29 03:55:43
So if X is getting replaced then its replacement should ideally work everywhere X is currently used. And it shouldn't require Linux-specific stupidity like dbus
2023-09-29 03:55:56
Or udev
2023-09-29 03:56:00
Or systemd
2023-09-29 03:56:55
Or any of that excessively-platform-specific and overcomplicated crap
2023-09-29 03:57:49
It should work on Windows and Mac ideally like X currently does
Fraetor
2023-09-29 10:18:51
I'm just sad that Inferno never when anywhere. Even Windows NT is heavily inspired by Unix, and I feel that we should be able to do better.
gb82
2023-10-02 05:06:23
JXL in GNOME web is great!
Demiurge
2023-10-02 10:44:23
Well now that I have a great experience on Mac and Linux, I think the obvious next question is how do I have the most seamless experience viewing jpegxl on my Samsung smart fridge?
Foxtrot
2023-10-02 04:38:30
why only WebP has watermark?
Nova Aurora
2023-10-02 05:36:17
Testing color handling to see if it strays from the expected behavior?
uis
Demiurge Instead of sticking with the same old code forever
2023-10-02 06:38:47
Lots of parts are rewritten
2023-10-02 06:39:53
Anyway linux ABI can be implemented with different kernel
gb82
2023-10-03 09:09:17
https://github.com/web-platform-tests/interop/issues/430#issuecomment-1745728757
Demiurge
uis Anyway linux ABI can be implemented with different kernel
2023-10-04 06:11:00
Yeah but legacy cruft like that only holds us back from better and simpler ideas
XAMPPRocky (she/her)
_wb_ The easiest way is to use <picture> with a jxl image and a jpeg fallback (or if it has alpha, you could do jxl with webp/avif and png fallbacks).
2023-10-06 08:31:25
Thanks, do you know if there is a programmatic way in the library to detect alpha in JXL? I’m thinking about image pipeline use-cases of allowing users to upload JXL and automatically providing the fallback image.
w
2023-10-06 08:36:56
JxlBasicInfo alpha_bits > 0
gb82
2023-10-06 05:57:51
Apple Pages supports JXL in Pages documents
Demiurge
2023-10-07 01:36:28
It's really cool how Apple has such great support for jpegxl
2023-10-07 01:37:03
I think the only thing they are missing is animation iirc?
_wb_
2023-10-07 01:56:44
Animated JXL works in Safari
spider-mario
2023-10-07 02:41:43
as far as I know, HDR is the main thing missing
2023-10-07 02:41:54
(well, I guess I am a bit biased in my assessment)
lonjil
2023-10-07 02:52:12
images definitely look HDR-y on my ipad, otoh no animations
spider-mario
2023-10-07 02:52:51
yes, in native apps, it works
2023-10-07 02:52:57
but not in Safari AFAIR
lonjil
2023-10-07 02:53:40
could be a difference between computer safari and iOS safari?
spider-mario
2023-10-07 02:53:59
iOS Safari is where I tested, I believe
lonjil
2023-10-07 02:54:08
ah
spider-mario
2023-10-07 02:54:19
on an iPhone 14 Pro
2023-10-07 02:54:28
I could get HDR in the gallery app
2023-10-07 02:54:34
but in Safari, I think it was dark
lonjil
2023-10-07 03:08:54
Not sure how correct this is, but doesn't look dark or washed out
2023-10-07 03:10:06
Eric Chan's images on csail mit look the same in Safari and the gallery. This is on an iPad Air M1
spider-mario
2023-10-07 03:16:19
uh, that does not resemble my early experience at all
2023-10-07 03:16:23
maybe they fixed it later on
2023-10-07 03:17:50
for me, it’s currently tone-mapped
2023-10-07 03:18:32
but if I “Save to Photos” and then open it there, it’s HDR
veluca
lonjil Not sure how correct this is, but doesn't look dark or washed out
2023-10-07 03:24:27
I distinctly remember loading that exact same image on Sami's macbook and it being awfully dark, uh, on Wednesday?
lonjil
2023-10-07 03:26:02
There probably is some difference in handling between Mac and iOS Safari, regardless of whether iOS Safari is actually doing the right thing.
2023-10-07 03:26:51
here's a picture of exactly the same thing on the first beta and it looks about the same https://discord.com/channels/794206087879852103/803574970180829194/1115423466141794415
The Bull's Eyed Womprat
2023-10-11 06:27:46
https://blog.adobe.com/en/publish/2023/10/10/hdr-explained
2023-10-11 06:28:40
They've added import and export support to Lightroom officially. With this, the DNG 1.7 spec, and the github interop comment, I think it's safe to say that Adobe has 'soft launched' Jpeg XL!
Fraetor
2023-10-11 07:18:22
🎉
_yummersdeluxe_
2023-10-11 08:12:12
🎉
FuriousFields
2023-10-11 08:25:36
<:FeelsAmazingMan:808826295768449054>
gb82
2023-10-11 08:49:22
<:JPEG_XL:805860709039865937>
Tirr
2023-10-12 10:51:34
seems like they're using HDR JPEG for the blog post <https://blog.adobe.com/assets/hdr/media_1a2681319bc4a65c32a43fa4bbd9d0ec58e9dfc0b.jpeg>
spider-mario
2023-10-12 02:32:01
seems to be jpeg+gainmap more specifically, as far as I can tell (which is not very far)
jonnyawsom3
The Bull's Eyed Womprat They've added import and export support to Lightroom officially. With this, the DNG 1.7 spec, and the github interop comment, I think it's safe to say that Adobe has 'soft launched' Jpeg XL!
2023-10-13 05:40:22
I thought I'd ask, can you import a DNG, then re-export using lossless JXL compression? Not used any Adobe products before so don't know what application you'd need or if it's possible at all, but I'd be curious how well it compresses if it can
spider-mario
I thought I'd ask, can you import a DNG, then re-export using lossless JXL compression? Not used any Adobe products before so don't know what application you'd need or if it's possible at all, but I'd be curious how well it compresses if it can
2023-10-13 08:45:05
it seems possible in principle but not yet offered by Adobe DNG Converter (unlike lossy JXL)
2023-10-13 08:45:37
it accepts DNG as input, and recompresses them (or at least it made the DNGs I tested with smaller), but it doesn’t seem to use lossless JXL for that
2023-10-13 08:46:17
with the lossy option, though, it produced 1.7.0 DNGs that non-Adobe apps (including RawDigger) couldn’t read, so maybe it’s using JXL for that now
lonjil
2023-10-13 10:51:56
hrm, I wonder how much better lossless jxl is compared to lossless jpeg. I assume the deflate option in dng has similar performance to png.
jonnyawsom3
2023-10-13 01:59:51
If they do eventually add lossless JXL as an option, then it could close a few DNG and RAW related issues floating around (Such as <https://github.com/libjxl/libjxl/issues/1492>)
2023-10-16 02:50:16
Looks like Adobe might've wanted to wait for a settings dialogue to be ready before release, there's a few open discussions about poor quality with the new JXL switch (Filesize is roughly 1/5 of the old compression, you can find and compare the JXL file inside the DNG using a hex editor's search) https://community.adobe.com/t5/camera-raw-discussions/artifacts-with-super-resolution-on-lossy-compressed-dng-with-cr16/m-p/14149956
2023-10-16 02:51:51
It does also mean Windows will fail to read any JXL encoded files, so who knows, now they have two reasons to add support. Both Native, and Adobe pushing
Oleksii Matiash
2023-10-16 07:03:22
~~On Win11 built-in Photos show DNG preview only~~ It shows preview if it is present in file. If no - it seems to show real raw image.
spider-mario
2023-10-16 07:50:34
eh, the quality of lossy DNG was already poor before
jonnyawsom3
Oleksii Matiash ~~On Win11 built-in Photos show DNG preview only~~ It shows preview if it is present in file. If no - it seems to show real raw image.
2023-10-16 11:00:44
I'm on Windows 10 and in this instance I don't belive so, the DNG files my phone puts out don't seem to have any embedded preview at all, which explains why they take so long to even generate file explorer thumbnails
2023-10-16 11:04:12
Here's the dump from exiftool, spent 20 minutes trying to just extract all preview files but nothing would happen, after comparing to a downloaded file it looks like there's no preview section near the bottom