File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
imagepicker/src/main/kotlin/com/github/drjacky/imagepicker/provider Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,14 +111,14 @@ class CompressionProvider(activity: ImagePickerActivity) : BaseProvider(activity
111111
112112 /* *
113113 *
114- * @param file File to get Image Size
114+ * @param uri File to get Image Size
115115 * @return Int Array, Index 0 has width and Index 1 has height
116116 */
117117 private fun getImageSize (uri : Uri ): IntArray {
118118 val options = BitmapFactory .Options ()
119119 options.inJustDecodeBounds = true
120120// BitmapFactory.decodeFile(uri.path, options)
121- BitmapFactory .decodeStream(contentResolver.openInputStream(uri))
121+ BitmapFactory .decodeStream(contentResolver.openInputStream(uri), null , options )
122122 return intArrayOf(options.outWidth, options.outHeight)
123123 }
124124}
You can’t perform that action at this time.
0 commit comments