JPEG XL Viewer plugin

I made a plugin for JPEG XL.

It's a fairly new format, only standardized this year (2022). It has some very useful features though, not least of which is being able to losslessly transcode JPEG files with around 20% smaller output.

This initial beta release needs more extensive testing. It is rather slow and I am looking at ways to optimize it. ICC colour profiles are not supported either, but it's not clear exactly how the decoding works so I'd be interested to know if the colour looks right on files with those profiles.

Finally, HDR is not supported either. I'm not sure if it can be supported, haven't really looked.

Copy both the .dll and .lld into the Viewers folder and refresh the plugin list in Opus.


V0.02 prevents the system getting very slow when creating thumbnails by limiting Opus to one thread for JPEG XL files.

1 Like

My Bro. After I followed your instructions and opened the folder containing JXL images, DOPUS immediately crashed and closed.

I'll get an updated version posted soon. In the mean time, I think the issue is you need to have the DLL in the main DOpus program folder, not the plugins folder. I'm not sure why, it is supposed to look in both places. When I have time I'll debug it.

Viewer plugins should only be loaded from the plugins folder. Opus won’t look for them in the main folder.

Yeah, I mean the libjxl.dll, not the plugin. I wrote code that is supposed to check the current directory and then the current directory + "viewers/" or whatever the path is, but it clearly doesn't work. I'm not really a desktop developer, I do embedded, so bare with me or feel free to submit pull requests.

Things stalled a bit because libjxl has performance issues, and they broke the Windows build too. At some point I will try to cross compile it from WSL and update.

1 Like

Wait for your updata.

Using JXL v0.02 and Dopus v12.31 x64

Unfortunately, when I enable this plugin, I get an error every time I view my Avatars folder which is filled with JXL files. When I switch from Details to Thumbnail mode, Dopus crashes.

Disabling the JXL plugin didn't work. I had to exit Dopus completely, browse to the folder in a regular Windows File Explorer and delete the 2 JXL plugin files using Administrator

Now Dopus no longer crashes. Weird.

Sorry for no error log or screenshot.

I might spend some more time on this, getting it up to scratch. The main issue is that the last time I tried to build the JXL DLL for Windows, the build was broken. If/when they fix it, my plan is to integrate everything into a single DLL to avoid having issues with paths.

1 Like