Ignoring JXL files with wrong extensions

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

Moderators: helmut, xnview, Dreamer

Post Reply
adrem85
Posts: 85
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: 2640
Joined: Sat May 09, 2015 9:37 am

Re: Ignoring JXL files with wrong extensions

Post by user0 »

adrem85
Posts: 85
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.
User avatar
xnview
Author of XnView
Posts: 46988
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Ignoring JXL files with wrong extensions

Post by xnview »

Currently some format need to have the correct extension like jpeg-xl
Pierre.
adrem85
Posts: 85
Joined: Mon Feb 10, 2020 12:47 pm

Re: Ignoring JXL files with wrong extensions

Post by adrem85 »

xnview wrote: Sun Dec 07, 2025 8:18 am Currently some format need to have the correct extension like jpeg-xl
Thanks, I'll keep that in mind. I also wanted to ask if it is possible to add a check to the program for the correctness of the extension and warn the user if the extension is incorrect?
Post Reply