JPEG XL Viewer plugin

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

New version 0.03.

Updated libjxl to 0.9.2. Performance seems to be a little better, but only a little.

Now statically linked, no need for a separate libjxl.dll. Just copy the jpegxl.dll into your viewers folder.

There are two versions. The normal one tries to detect small images, typically thumbnails, and decode them in single threaded mode. The jpegxl_multi.dll version just uses multi-threaded decoding for everything.

I have not found a good way to benchmark them so I can't say for sure which is better.

There's also a thumbnail handler here:

Your plugin is much better, but anyone who's having problems with it might want to give this a go. It's purely thumbs though - no metadata, preview or opening in D8Viewer.

1 Like

I see they just released 0.10.0 which supposedly fixes a big performance regression. I'll see about getting it integrated, but at the moment it's a bit of a pain to build.

Beta 0.04: Release Beta 0.04 · kuro68k/JPEG_XL_dopus · GitHub

2 Likes

And thumbnail is generated in DOpus but not in Explorer. Picture in question is in JPEG XL format and it seem that it is handled by JPEG XL Viewer Plugin 0.0.0.4 (picture is not shown in Viewer if the plugin is disabled in Preferences).
Directory Opus Pro 12.33 Build 8659 x64
OS 6.1 (B:7601 P:2 T:1) SP 1.0 "Service Pack 1"

Picture is attached in thread:

This plug-in is for DOpus, it won't show anything in Explorer.

Apologies.
First sentence should be:
Picture shown in Viewer but not in Viewer Pane and thumbnail is generated in DOpus but not in Explorer.
I just copied it from thread titled" Picture shown in Viewer but not in Viewer Pane".

I mentioned Explorer to exclude possibility that there is other component (e.g. WIC codec) involved.
And picture is not displayed if in archive.

I was going to write that Explorer and DOpus thumbnails are separate, but I realised you already know this.

As I said in your other thread, it may be another plugin trying to open the file. The MetaPlugin is often the culprit.

Try opening a JPEG-XL with D8Viewer, which should be in the DOpus directory - just right click the image, Open With, Choose Default Program, and select D8Viewer in the DOpus directory.

If it fails to open, which it should if it isn't working in the preview panel, then it should tell you which plugin is being used to try to open the image.

I don't think this is an issue with the plugin. The API is very simple and I didn't see anything about the viewer pane in there when I looked before. I think xraale is probably right, it's more likely to be some kind of Opus or other plugin issue.

It opens in Viewer both after double clicking or using Open With, Choose Default Program, and select D8Viewer method.
I have disabled other plugins for test and I have restarted Opus. I do not see MetaPlugin. I think that it is not installed with DOpus 12.

MetaPlugin comes with DOpus. It's listed as MetaPlugin (Preview/Office/Web/ActiveX).

If it isn't there, then there's something very wrong with your installation and could explain your issues. You could try uninstalling DOpus completely and re-installing it.

If the MetaPlugin isn't installed, you won't get previews of many types of file, like PDF, or anything handled by Windows shell.

But I've just tested by disabling it and the JPEG-XL plugin still shows the image properly in the preview window.

MetaPlugin had a different name in Opus 12.

Right, sorry. It was just called ActiveX+Preview+Office+Web.

If Konrad_Klar is getting the DOpus viewer to load JPEG-XL then the plugin appears to be working, at least.

I can confirm. I moved a picture to Libraries/Images and nothing shows in the viewer pane any more. Just white.

Looks like a bug in the plugin. I don't think it's in dopus. I've just tried it with a JPEG2000 and WebP file (different plugins) and they show ok.

1 Like

Works for me.

For me too, but not if picture is selected from listers like lib://Pictures or lib://Documents.

It specifically doesn't work for libraries. I've tried file collections, favourites, and search results, and the plugin works fine. Filesystem is ok too.

But use a library (which is lib://something in dopus) and preview window will be blank. Thumbnails still work.

It looks like a simple pathing bug. Maybe the JPEG-XL plugin is asking dopus for the path and getting something back that fails to resolve to an actual file.