Comments (11)
- Below code still works:
fun pickProfileImage(view: View) {
ImagePicker.with(this)
//.crop()
//.cropOval()
.maxResultSize(512, 512, true)
.createIntentFromDialog { profileLauncher.launch(it) }
}
- I've used below config and it worked without showing crop step:
fun pickGalleryImage(view: View) {
galleryLauncher.launch(
ImagePicker.with(this)
// .crop()
.galleryOnly()
// .cropFreeStyle()
.galleryMimeTypes( // no gif images at all
mimeTypes = arrayOf(
"image/png",
"image/jpg",
"image/jpeg"
)
)
.createIntent()
)
}
from imagepicker.
I've checked the latest version (v2.1.12) and it worked on API 30 (Android 11).
Run the sample app and let me know if it works or not.
from imagepicker.
Hello Drjacky,
Thanks It worked :)
but want to highlight two issues:
-
Previously was using below mentioned code, to display dialog for both the options , but it was not working , created own dialog and called both intents separately then it worked.
ImagePicker.with(this)
//...
.createIntentFromDialog { launcher.launch(it) } -
As in my project there is no requirement to crop image , so was not using crop() , but it created FileNotFoundException until i included crop() in builder.
*i think first issue is not that important but second issue can be fixed.
Thanks!!
from imagepicker.
Getting below message in android 11
" Some permission are permanently denied which are required to perform this operation. Please open app settings to grant these permissions."
from imagepicker.
@ebaraiya Screenshot, please.
from imagepicker.
from imagepicker.
@ebaraiya Do you use https://github.com/QuickPermissions/QuickPermissions-Kotlin?
from imagepicker.
Yes, I am using it.
from imagepicker.
@ebaraiya Yup, it's that
https://github.com/QuickPermissions/QuickPermissions-Kotlin/blob/2cc50df62f04a4d97e21b15f51b34acc3666ef75/quickpermissions-kotlin/src/main/java/com/livinglifetechway/quickpermissions_kotlin/PermissionsManager.kt#L135
Nothing to do with ImagePicker library.
from imagepicker.
If We are using the below library then working fine
implementation 'com.github.dhaval2404:imagepicker:1.5'
implementation 'com.github.florent37:inline-activity-result-kotlin:1.0.1'
from imagepicker.
@ebaraiya That library and version has issue with Android API 28 and above + to be published on Play Store (https://developer.android.com/about/versions/11/privacy/storage)
from imagepicker.
Related Issues (20)
- Black Image returned when cropping large images with higher resolution especially raw camera photos, tried it with a (3456 * 4608) . It doesn't crash though. HOT 6
- Setting up different languages HOT 1
- Android 13 not workinf HOT 4
- WRITE_EXTERNAL_STORAGE is denied between Sdk 29 and 33. HOT 2
- Getting ANR in some devices when picking from Gallery.
- [Crash] CropProvider.convertBitmapToFile - java.io.IOException - No such file or directory HOT 2
- Image provider can not be null
- In AndroidManifast file, Kindly updated the <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" />, like android:maxSdkVersion="33" this permission not working in android 10, 11, 12 devices
- Delete image when succesfull
- Screen Orientation Issue: Image Picker HOT 4
- Java Sample HOT 1
- API 29 crop image preview not showing black screen only available after crop HOT 1
- set limit on multiple images
- app crash when launch HOT 1
- Cropped Aspect Ratio! HOT 1
- Manifest merger failed : Attribute activity#com.yalantis.ucrop.UCropActivity@theme value=(@style/CameraTheme) from [paysprint_onboarding_live_1_0_9.aar] AndroidManifest.xml:56:13-47
- Could not scale to target size HOT 1
- Open front camera at first.
- [Crash] When picking a camera image without setting crop() HOT 1
- return error "Image provider can not be null"? Any idea...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagepicker.