expo-image-picker 16.0.0 → 16.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 16.0.1 — 2024-11-04
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fix incorrect width/height reported with EXIF tags 5 and 7 ([#32534](https://github.com/expo/expo/pull/32534) by [@gaearon](https://github.com/gaearon))
18
+
13
19
  ## 16.0.0 — 2024-10-22
14
20
 
15
21
  ### 🛠 Breaking changes
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '16.0.0'
4
+ version = '16.0.1'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,7 +14,7 @@ android {
14
14
  namespace "expo.modules.imagepicker"
15
15
  defaultConfig {
16
16
  versionCode 22
17
- versionName "16.0.0"
17
+ versionName "16.0.1"
18
18
  }
19
19
  }
20
20
 
@@ -16,7 +16,12 @@ class RawImageExporter : ImageExporter {
16
16
  copyFile(source, output, contentResolver)
17
17
  val exifInterface = ExifInterface(output.absolutePath)
18
18
  val imageRotation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, 0)
19
- val isRotatedLandscape = (imageRotation == ExifInterface.ORIENTATION_ROTATE_90 || imageRotation == ExifInterface.ORIENTATION_ROTATE_270)
19
+ val isRotatedLandscape = (
20
+ imageRotation == ExifInterface.ORIENTATION_ROTATE_90 ||
21
+ imageRotation == ExifInterface.ORIENTATION_ROTATE_270 ||
22
+ imageRotation == ExifInterface.ORIENTATION_TRANSPOSE ||
23
+ imageRotation == ExifInterface.ORIENTATION_TRANSVERSE
24
+ )
20
25
  val options = BitmapFactory.Options().apply { inJustDecodeBounds = true }
21
26
 
22
27
  BitmapFactory.decodeFile(output.absolutePath, options)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-image-picker",
3
- "version": "16.0.0",
3
+ "version": "16.0.1",
4
4
  "description": "Provides access to the system's UI for selecting images and videos from the phone's library or taking a photo with the camera.",
5
5
  "main": "build/ImagePicker.js",
6
6
  "types": "build/ImagePicker.d.ts",
@@ -44,5 +44,5 @@
44
44
  "peerDependencies": {
45
45
  "expo": "*"
46
46
  },
47
- "gitHead": "7c7d2362fff23bec26cd145ed34edd9c403551bd"
47
+ "gitHead": "d97ae0839fa465cee14e13ca38f3c6c84c124d82"
48
48
  }