Is JPEG-XL DOA? Topic is solved
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Re: Is JPEG-XL DOA?
Ahh, my apologies then for jumping to "bug" conclusion. I guess I could have inspected the MIME type. Thank you both for the reality check.
Re: Is JPEG-XL DOA?
You're fine
I was equally confused when implementing it and thought it was a bug, up to the point I checked the MIME type.

"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
Re: Is JPEG-XL DOA?
Finally got Pale Moon version 31.4.1 (64-bit) on this machine (happens to be Linux Mint) to try that link and I'm still being presented with the download file dialog box.RealityRipple wrote: ↑2022-12-01, 06:21Weirdly enough, that's not a bug, it's expected behavior. They're serving that file as application/octet-stream. Try http://demos.webmproject.org/webp/cmp/2022_10_04/comparisonfiles/subset1/small/JXL/08-2011._Panthera_tigris_tigris_-_Texas_Park_-_Lanzarote_-TP04.jxl instead. It's served as image/jxl as it should be.
Let me go try a Windows machine...
Hmm, works properly on Windows. Let me restart my Linux machine and report back.
Edit: Still no dice on Linux. Quite interesting... Maybe worth looking into further?
Re: Is JPEG-XL DOA?
Which Linux builds are you using? Mainline universal build from linux.palemoon.org? Package from a local package manager? Steve Pusser's builds? Or built from source?
If you go to https://jpegxl.info/ does it indicate support or not?
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
Re: Is JPEG-XL DOA?
Let me know if I should, and I'll create a new thread for this.
I thought I was using Steve Pusser's builds, but I'll say for sure it gets updated through my local package manager which calls itself mintUpdate but I'm assuming uses apt-get in the background. For sure it's not built from source on my machine. It might ultimately come from mainline linux.palemoon.org but that is beyond me.
If there is a way to tell for sure, I'm all ears. (I'm much more comfortable in MS Windows, as sad as that sounds.)
As for https://jpegxl.info/ I would have thought I'd been there before on this specific machine, but I guess not. It indicates my copy of Pale Moon version 31.4.1 (64-bit) does not support JPEG-XL. Excellent test. So now we know something very odd is going on with my version of PM. I'm happy to help now that we know more. Just let me know what to do.
I thought I was using Steve Pusser's builds, but I'll say for sure it gets updated through my local package manager which calls itself mintUpdate but I'm assuming uses apt-get in the background. For sure it's not built from source on my machine. It might ultimately come from mainline linux.palemoon.org but that is beyond me.
If there is a way to tell for sure, I'm all ears. (I'm much more comfortable in MS Windows, as sad as that sounds.)
As for https://jpegxl.info/ I would have thought I'd been there before on this specific machine, but I guess not. It indicates my copy of Pale Moon version 31.4.1 (64-bit) does not support JPEG-XL. Excellent test. So now we know something very odd is going on with my version of PM. I'm happy to help now that we know more. Just let me know what to do.
Re: Is JPEG-XL DOA?
If it is someone just doing builds for that platform, they need to add --enable-jxl to the build configuration to get that support. I assume about:buildconfig will not show --enable-jxl?
Re: Is JPEG-XL DOA?
You're correct, it seems who ever is building the application did not enable that config option.
Searchable text verion:

Searchable text verion:

- jobbautista9
- Contributing developer
- Posts: 726
- Joined: 2020-11-03, 06:47
- Location: Philippines
- Contact:
Re: Is JPEG-XL DOA?
I do realize there's a non-JS way to do it, but what if I don't own the server for example? I can use the <picture> and <source> tags to serve JPEG-XL images with a PNG fallback as shown in http://rw.rs/~job/writings/everything2/cyndaquil3.html, but I don't know of an equivalent, working way for CSS background-image which ensures the browser will load only one image (and load only the fallback when it fails to decode the first option). Apparently there's now image-set() for that, but we don't support this yet...Moonchild wrote: ↑2022-11-22, 20:11I'm not sure why people jump to using JS for everything.
There is this thing called "content negotiation" (aka "conneg") which is and has been a standard part of HTML that does not need scripting to determine what a client accepts.
Some people in the Google corner have (predictably) tried to snuff it but it's too powerful™ so it has survived the assault.
Basically, conneg sends a header to the server which mime types are accepted for the request, and the server can easily serve up appropriate content as a result.
Our JPEG-XL support is advertised to servers this way through the image.http.accept pref which advertises specific support for webp (and now also jxl) as well as png, explicitly, before a fallback value (basically telling the server "if not any of these, then use whatever you have" which normally means formats everyone and their grandmother supports). Servers can easily check this header to see whether a client supports a specific image format and serve the appropriate response, accordingly.

mima-samarto
XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.
My PGP public key (My copy on rw.rs)
Mima avatar by 拝 一樹 of pixiv (Danbooru rehost)
Re: Is JPEG-XL DOA?
If you have that little control over your server in 2022 then you may want to consider hopping service provider.
Just saying
As for the background-image corner case I haven't looked into details, but I have to wonder if JPEG-XL is a good candidate for that to begin with, so short after its introduction. Either way, it needs time.
Just saying

As for the background-image corner case I haven't looked into details, but I have to wonder if JPEG-XL is a good candidate for that to begin with, so short after its introduction. Either way, it needs time.
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
Re: Is JPEG-XL DOA?
I have a follow-up to my posts above. Seems whoever is building the PM release I'm using on Linux Mint finally got with the JXL program and the option is now enabled for the build.
All looks good here as well: https://jpegxl.info/test-page
about:buildconfig output:
All looks good here as well: https://jpegxl.info/test-page

about:buildconfig output:
Re: Is JPEG-XL DOA?
When I right-click and select "View Image" on the other three formats I get just the image in its own window. When I do that on the JXL image I get a "What should Pale Moon do with this file?" dialog. Can I make that open natively like the other image formats?BenFenner wrote: ↑2023-01-25, 23:15I have a follow-up to my posts above. Seems whoever is building the PM release I'm using on Linux Mint finally got with the JXL program and the option is now enabled for the build.
All looks good here as well: https://jpegxl.info/test-page
Re: Is JPEG-XL DOA?
I believe that situation has already been discussed in this thread, and things are working as expected. Begin reading from here:
viewtopic.php?f=5&t=29099#p234357
I'll also say, related to my other posts here. I know now for sure I'm using the Steven Pusser releases. Not sure why he forgot to enable the build flag a while back, but no big deal. Had I known who to ping at the time I would have.
viewtopic.php?f=5&t=29099#p234357
I'll also say, related to my other posts here. I know now for sure I'm using the Steven Pusser releases. Not sure why he forgot to enable the build flag a while back, but no big deal. Had I known who to ping at the time I would have.
- RealityRipple
- Astronaut
- Posts: 552
- Joined: 2018-05-17, 02:34
- Location: Los Berros Canyon, California
- Contact:
Re: Is JPEG-XL DOA?
Yep, that host is serving the file as "application/octet-stream", which, when loaded individually, results in a download prompt because the server says to handle it as binary data, not an image.