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-native-exif@0.6.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@notech/react-native-exif@0.6.2/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { Platform, NativeModules } from \"react-native\";\n\nconst Exif = {};\n\nfunction unifyAndroid(exif) {\n  const output = {};\n\n  output.imageWidth = parseInt(exif.ImageWidth);\n  output.imageHeight = parseInt(exif.ImageLength);\n  output.orientation = parseInt(exif.Orientation);\n  if ([5,6,7,8].includes(exif.Orientation)) {\n    output.imageWidth = exif.PixelHeight;\n    output.imageHeight = exif.PixelWidth;\n  }\n\n  output.originalUri = exif.originalUri;\n  output.exif = exif;\n  return output;\n}\n\nfunction unifyIOS(exif) {\n  const output = {};\n\n  output.imageWidth = exif.PixelWidth;\n  output.imageHeight = exif.PixelHeight;\n  output.orientation = exif.Orientation;\n  if ([5,6,7,8].includes(exif.Orientation)) {\n    output.imageWidth = exif.PixelHeight;\n    output.imageHeight = exif.PixelWidth;\n  }\n\n  output.originalUri = exif.originalUri;\n  output.exif = exif;\n  return output;\n}\n\nExif.getExif = function (uri) {\n  const path = uri.replace(\"file://\", \"\");\n  return NativeModules.ReactNativeExif.getExif(path).then((result) => {\n    if (Platform.OS === \"android\") {\n      return unifyAndroid(result);\n    }\n    return unifyIOS(result);\n  });\n};\n\nExif.getExifWithLocalIdentifier = function (localIdentifier) {\n  return NativeModules.ReactNativeExif.getExifWithLocalIdentifier(\n    localIdentifier\n  ).then((result) => {\n    if (Platform.OS === \"android\") {\n      return unifyAndroid(result);\n    }\n    return unifyIOS(result);\n  });\n};\n\nExif.getLatLong = function (uri) {\n  const path = uri.replace(\"file://\", \"\");\n  return NativeModules.ReactNativeExif.getLatLong(path);\n};\n\nExif.getSize = function (uri) {\n  const path = uri.replace(\"file://\", \"\");\n  return NativeModules.ReactNativeExif.getSize(path);\n};\n\nmodule.exports = Exif;\n"]}