
In my case, the JPEG file was actually in the WebP format, so I fixed the issue by renaming the file's extension from .jpg to .webp.

In my case, the JPEG file was actually in the WebP format, so I fixed the issue by renaming the file's extension from .jpg to .webp.