-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
** Image Picker 【IOS11+】Album List : Text covered picture #2282
Comments
I am experiencing same issue cli packages: (/Users/kingandhismate/.npm-packages/lib/node_modules)
global packages:
local packages:
System:
|
Related to the plugin source. |
@danielsogl So, what is the correct plugin source? |
I m also getting the same problem... some one plz help me |
@XamarinD2k I haven't figured out the problem but i've ended up using this plugin https://github.com/wymsee/cordova-imagePicker. It has less options but i found it to be more stable regardless of the issue related to this post. The only downside for me is that it can only return FILE_URI not base64. |
I was facing the same problem and I couldn't make it work, so I switched to this plugin https://github.com/wymsee/cordova-imagePicker and it works great. I also used ionic native file plugin to get a base64 representation of the file(image). |
thanx for ur support... I installed the plugin from the link u'v given above but unable to get the "window.imagePicker" object, can you pls give example code that illustrate "how to use" |
You use it the same way as you would with the other (telerik) image picker, as is described in ionic docs https://ionicframework.com/docs/native/image-picker/. The only thing that differs one another are the options.
this.imagePicker.getPictures(options).then(photos => {
for (let photo in photos) {
console.log(photos[photo]);
}
}, err => {
console.log(err);
}); My code is slightly syntacticly different from the example in ionic docs, but it does the same thing I haven't used any options since i didn't need any but if your application requires just look at available options in the plugin's docs https://github.com/wymsee/cordova-imagePicker |
yup got it bro.. but from where to import it.. import { ImagePicker } from "???????" |
import { ImagePicker } from "@ionic-native/image-picker"; sorry dont know how i missed it github truncates it if its not in code tags |
wooowwwwww... it worked...!! |
Np. Good luck! @XamarinD2k |
bro, but its not working with Android... app get close (crash) when trying to open gallery in android... I tried to open gallery using Camera plugin also, but same issue (text overlapping) with iOS... finally using Camera Plugin to capture image and getting its fileUri..... |
I had the same problem. The issue is with android camera permissions. iOS does it inherently while for android you must do it manually. Also, I've ended up using different plugins for the two platforms. This is what you must do for android: import { ImagePicker } from "@ionic-native/image-picker";
import { Platform } from 'ionic-angular';
constructor(private imgPicker:ImagePicker, private platform:Platform) {
if(this.platform.is('android')) {
this.imgPicker.hasReadPermission()
.then((granted:boolean) => {
if(!granted) {
this.imgPicker.requestReadPermission();
}
});
}
} |
yes, i did it. below is my code: import { Camera, CameraOptions } from '@ionic-native/camera'; constructor() { selectPhoto() { |
only problem m facing is "Text covered thumbnails" while browsing the images on iOS. |
I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/
Current behavior:
When trying to select an album by clicking its name the text (album name ) moves to the left and placed on the thumbnail album view (thumbnail images are overlaid with the album names)
Expected behavior:
When clicking any album, thumbnail images of "Select an Album" view, album names should not move. When back from the specific album to the album list, thumbnails should be on the left side and the text that is the album names should be next to the thumbnails.
Steps to reproduce:
Other information:
This issue is already reported on the git page.
Telerik-Verified-Plugins/ImagePicker#95
The text was updated successfully, but these errors were encountered: