hMatoba / piexifjs

Read and modify exif in client-side or server-side JavaScript.
MIT License
571 stars 118 forks source link

Problem when running inside cordova #60

Closed HarelM closed 5 years ago

HarelM commented 5 years ago

I have no clue why, but the following image does not get any exif info when used inside cordova. When using the same code on desktop browser the data is fetched correctly. img_20190205_233435 How can I debug this?

HarelM commented 5 years ago

Seems like this was not related to this library after all... Closing.

josephlaw commented 5 years ago

@HarelM can you share how to fix your problem? because i also using cordova.

HarelM commented 5 years ago

The problem was a bug in a cordova plugin where the exif information was lost when using the gallery. The following line solved it: https://github.com/IsraelHikingMap/Site/blob/e38e4b47d333bb86168e02b2731d4b10556a6b43/IsraelHiking.Web/sources/application/directives/image-capture.directive.ts#L65 Relevant issues: https://github.com/IsraelHikingMap/Site/issues/932 https://github.com/apache/cordova-plugin-camera/issues/329