Ignoring JXL files with wrong extensions

*** Please report new bugs here! ***

Moderators: helmut, xnview, Dreamer

Post Reply
adrem85
Posts: 81
Joined: Mon Feb 10, 2020 12:47 pm

Ignoring JXL files with wrong extensions

Post by adrem85 »

XnViewMP has long had a minor issue with JXL files. Take a JXL file, rename its extension (for example, to WEBP) and try to open it from any file manager - and we will get a program error: “File cannot be loaded”. And if you try to open such a file from a Browser in the program itself, XnViewMP simply won't show it, as if it doesn't exist at all.

Setting “Recognize only by file extension” and “Scan file headers - Always” in the Settings has no effect; whether they are enabled or not, the result is always the same - the program refuses to open a JXL file with the wrong extension and, even worse, does not even warn the user that the file has the wrong extension.

At the same time, another image viewer (Program 1), which supports JXL, displays a message to the user when opening such a file, stating that 1) the file has an incorrect extension, 2) informing the user of the correct extension, and 3) offering to rename it immediately. If the user refuses to rename the extension, Program 1 displays the file as a normal JXL file without any problems.

Another program (Program 2) with JXL support simply opens such a file without asking any questions, which is slightly worse, as the user should be warned about the incorrect extension. But it is still much better than XnViewMP's complete refusal to work with such files.

I would like XnViewMP to behave in the same way as Program 1 with regard to JXL files with incorrect extensions.

Windows 11, XnViewMP Portable (any version).
User avatar
user0
XnThusiast
Posts: 2636
Joined: Sat May 09, 2015 9:37 am

Re: Ignoring JXL files with wrong extensions

Post by user0 »

adrem85
Posts: 81
Joined: Mon Feb 10, 2020 12:47 pm

Re: Ignoring JXL files with wrong extensions

Post by adrem85 »

user0 wrote: Sat Dec 06, 2025 5:48 pm related
Messageboxes - notify on incorrect extension
Thank you, it turns out that the problem affects not only JXL. But in the case of JXL, the problem is a little more serious. If you rename a GIF to PNG, XnViewMP will display it like any normal GIF. But in the case of JXL, the program refuses to display it at all or simply ignores it.
Post Reply