nokiatech / heif

High Efficiency Image File Format
Other
1.74k stars 247 forks source link

Mimetype handling for jpeg #110

Open meghprkh opened 2 years ago

meghprkh commented 2 years ago

This is an application bug mostly, but does the format have mimetype information in the first few bytes?

There are some instances when jpeg files are named with extension heic files, especially by Google Photos. In those cases apps using llibheif fails to detect this.

I have installed libheif, which I think provides gdk-pixbuf-libheif too. A jpeg file incorrectly having extension heic cannot be loaded by eye-of-gnome.

However renaming a jpeg file with png extension seems to work. I dont know if this is an application or library bug.