Downloaded jpg images will not open

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, helmut, xnview

RenaissanceMan
Posts: 2
Joined: Sat Dec 14, 2024 4:57 pm

Downloaded jpg images will not open

Post by RenaissanceMan »

Downloaded jpg images often result in "Format of the file <filename.jpg> could not be determined For displaying of less common formats, the following option is available: Options> General>[x] Display all image file types"

Thumbnail cache cleared
Program reinstalled
Ini file renamed
I DO have Display all image file types checked.

I can open the image in IrfanView; if I then save it in the same jpg format, the saved image will then open in XnView Classic.

Why is this happening and how can I fix it?

I'm running v. 2.52.0 & Windows 11 24H2
cday
XnThusiast
Posts: 4214
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Downloaded jpg images will not open

Post by cday »

Best to post an example JPEG file that doesn't open in XnView software, if necessary in a ZIP archive, forum maximum attachment size 2MiB, otherwise you could provide a download link.
RenaissanceMan
Posts: 2
Joined: Sat Dec 14, 2024 4:57 pm

Re: Downloaded jpg images will not open

Post by RenaissanceMan »

Attached is the image in a zip file
You do not have the required permissions to view the files attached to this post.
cday
XnThusiast
Posts: 4214
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Downloaded jpg images will not open

Post by cday »

Probably not actually a JPEG, changing the extension it doesn't seem to be a PNG, I think Irfanview has an option to open incorrectly formed files, doesn't it?
User avatar
XnTriq
Moderator & Librarian
Posts: 6402
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Downloaded jpg images will not open

Post by XnTriq »

white-wine-day.jpg is actually an AVIF.
This format is not supported by XnView Classic.
But XnView MP can read (and write) them.
User avatar
XnTriq
Moderator & Librarian
Posts: 6402
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Downloaded jpg images will not open

Post by XnTriq »

Many content management systems convert JPEGs and PNGs on websites to WebP or AVIF without changing the filename extension.

XnView MP:
  1. Go to ToolsSettings…File list
  2. Deactivate Recognize only by extension.
  3. Set Scan file headers to Always