oozcitak / exiflibrary

A .Net Standard library for editing Exif metadata
MIT License
131 stars 48 forks source link

Unhandled exception in SaveAsync on devices with Mediatek chipset #91

Open mozhered opened 2 years ago

mozhered commented 2 years ago

Hi oozcitak

Exiflibrary works well on all Android devices beside the one built on Mediatek chipset (Huawei, Xiaomi, etc.) on which we are getting the below exception

Uncaught exception in xxxActivity.stack trace:   
  at ExifLibrary.JPEGFile.SaveInternal (System.IO.MemoryStream stream) [0x00045] in <a932cb9090ed48088111ae919dcdd902>:0 
  at ExifLibrary.ImageFile.Save (System.IO.Stream stream) [0x0001a] in <a932cb9090ed48088111ae919dcdd902>:0 
  at ExifLibrary.ImageFile.SaveAsync (System.IO.Stream stream) [0x00007] in <a932cb9090ed48088111ae919dcdd902>:0 
  at ExifLibrary.ImageFile.SaveAsync (System.String filename) [0x00086] in <a932cb9090ed48088111ae919dcdd902>:0 

Is there we can do? Does ExifLibrary work on Mediatek powered devices?