FileOnQ / Imaging.Heif

A C#/.NET wrapper around libheif for decoding and processing high efficiency image formats (heif, heic).
GNU Lesser General Public License v3.0
15 stars 4 forks source link

Could you provide an API to get rotation #96

Open ju2pom opened 2 years ago

ju2pom commented 2 years ago

Hi, Thanks for bringing this great and simple to use library to the public. It would be really nice to have a way to know image orientation (and even better get exif metadata).

Thanks.

SkyeHoefling commented 2 years ago

This is a good idea, not sure how we want to implement or if we want to take any dependencies on other libraries.

Right now the best workaround is to read the exif data using another library and then apply the rotation to the jpeg afterwards. When this library saves the image, it is saving exactly how the image is stored as heif, but it does not read any of the rotation exif data to get the orientation. This is the solution we use internally in our proprietary code as the goal of this library is to be as lightweight as possible