What's the best way to read EXIF info of a picture in Asp.Net Core. I am using ImageProcessorCore alpha from myget to rotate pictures but i haven't found a way to read exif data is there a in library way of doing this?
I was able to find a library that reads exif info and it is available for .net core i am using it in my Asp.Net Core.
https://magick.codeplex.com/wikipage?title=Exif%20data&referringTitle=Documentation
This also looks like a good imaging library but i haven't tried it yet Cheers to the creators.
The lightweight ExifLib has now been ported to .net Standard/.net Core.
I have confirmed it also works on Linux.
I was able to find a library that reads exif info and it is available for .net core i am using it in my Asp.Net Core.
https://magick.codeplex.com/wikipage?title=Exif%20data&referringTitle=Documentation
This also looks like a good imaging library but i haven't tried it yet Cheers to the creators.
ImageSharp is cross platform (https://github.com/SixLabors/ImageSharp ) and worked for me on Linux out of the box. It is still in beta but for me it works OK, I am only using exif parsing capabilities
The accepted solution will (as of today) not work on Linux machines.
Therefore, I have used the source of ExifLib: https://www.codeproject.com/Articles/36342/ExifLib-A-Fast-Exif-Data-Extractor-for-NET
I slightly modified it to use Dispose() on streams and readers instead of Close(). For just reading exif data, it performs well because it reads the binary data instead of using expensive GDI objects.
Install-Package : Package ExifLib 1.7.0 is not compatible with netcoreapp1.1
–
Ianthe I used Magick.NET.Core, it has much more capabilities than EXIF,
The source code can be found here - github library: https://www.nuget.org/packages/Magick.NET.Core/
And the specific EXIF documentation: https://github.com/dlemstra/Magick.NET/blob/main/docs/ExifData.md
© 2022 - 2024 — McMap. All rights reserved.