Open alainib opened 6 years ago
I have a similar issue, i think, with version 2.0.
when using from web browser it works as expected, but when using this library from cordova as which i think is similar to react native, it fails when using load
.
I think reverting to 1.4 is my best bet...?
Hello. I use this lib to read exif from jpg, thanks for the nice work. It work very well on android but not on IOS (tested with iphone 5)
I use the same JPG file with exif inside with same code on android and Ios
the JS code to Test if exif where readed good is :
If i log exif from piexifjs this is what i get :
If i use
react-native-image-crop-picker
i get good exif on Android and Ios but i need piexifs because i want to read exif, compress jpg then re write exiflog from react-native-image-crop-picker on Ios
Android results with same jpg file with piexif
-0th Make:Apple Model:iPhone 5c Orientation:1 XResolution:72,1 YResolution:72,1 ResolutionUnit:2 Software:Photos 3.0 DateTime:2018:09:28 10:34:06 ExifTag:198 GPSTag:1010 -Exif ExposureTime:1,20 FNumber:12,5 ExposureProgram:2 ISOSpeedRatings:64 ExifVersion:0221 DateTimeOriginal:2018:09:28 10:34:06 DateTimeDigitized:2018:09:28 10:34:06 FlashpixVersion:0100 ColorSpace:1 PixelXDimension:2448 PixelYDimension:3264 SensingMethod:2
ExposureMode:0 WhiteBalance:0 FocalLengthIn35mmFilm:33 SceneCaptureType:0 LensSpecification:103,25,103,25,12,5,12,5 LensMake:Apple LensModel:iPhone 5c back camera 4.12mm f/2.4 -GPS GPSLatitudeRef:N GPSLatitude:43,1,39,1,619,100 GPSLongitudeRef:E GPSLongitude:3,1,51,1,4265,100 GPSAltitudeRef:0 GPSAltitude:45,1 GPSTimeStamp:8,1,34,1,4,1 GPSSpeedRef:K GPSSpeed:183,100 GPSImgDirectionRef:T GPSImgDirection:21788,115 GPSDestBearingRef:T GPSDestBearing:21788,115 GPSDateStamp:2018:09:28 GPSHPositioningError:100,1 -Interop -1st
Did you think there is a fix ?
EDIT : this is my "transplante" function