Questions tagged [imagepicker]
462 questions
3
votes
5 answers
The method getImage isn't defined
I am using image_picker 0.6.7+17 library in order to take an image using the phone camera.
I am using an android device and not an ios device.
A problem
It seems like that getImage method is not defined, I took this exact code from the docs:
final…

Tamir Abutbul
- 7,301
- 7
- 25
- 53
3
votes
2 answers
Converting Image FlutterWebImagePicker Output to File
I'm using Flutter web for a webapp and having trouble converting an image from the image picker to a file in order to upload it to my server. I display the image in Image.file(xxx) but I get the error:
Error while trying to load an asset:…

Doing Things Occasionally
- 796
- 2
- 13
- 42
3
votes
2 answers
How can i specify the quality of the photo in Flutter MultiImagePicker?
I need to upload an amount of photos and send these photos to the database. Due to the high quality of the photo, it takes a fair amount of time to complete and upload each photo. I don't need a very high quality photo so I need to compress the…

Sergei Eensalu
- 377
- 1
- 15
3
votes
1 answer
Expo-Image-Picker in React Native
Is there a way to limit video recording time using ImagePicker.launchCameraAsync()?
My code:
captureVideoObject = async () => {
return await ImagePicker.launchCameraAsync({
mediaTypes: ImagePicker.MediaTypeOptions.Videos,
…

Babjonii
- 43
- 5
3
votes
2 answers
SwiftUI ImagePicker save (Image -> UIImage --> Data) to Core Data
Hello everyone I am kind of frustrated, so I hope to get some help. My Project is in SwiftUI. I want to use an image Picker to save the image to Core Data. I achieved to get the ImagePicker to work, but im struggling to convert Image --> UIImage -->…

Andre
- 41
- 1
- 2
3
votes
1 answer
How to get path of an Asset object in Flutter?
I am using multi-image picker in flutter and i have to load these images in a file to display them in a Photo View..
I am certain that my method to convert the assets to files is not appropriate.
I am not able to achieve this as i am always getting…

DCodes
- 789
- 1
- 11
- 27
3
votes
3 answers
How can I limit video capturing via ImagePicker to 1 minutes maximum duration in Flutter?
I'm using ImagePicker to upload videos either from gallery or via capturing them from camera.
Problem is that I don't want the video to exceed 1 minute duration, when in gallery picking mode, I check the duration of selected video and show a message…

Ghada Shebl
- 539
- 2
- 6
- 12
2
votes
0 answers
Flutter image_picker pre-select images
I'm using the flutter image_picker plugin. I can use
final ImagePicker picker = ImagePicker();
final List images = await picker.pickMultiImage(imageQuality: 60);
After a user has picked multiple images for their post and exit out, they can…

Alankar Misra
- 151
- 2
- 4
2
votes
0 answers
SwiftUI Image picker "Cannot load representation of type public.jpeg"
I have written a ImagePicker for my SwiftUI app, but every time I select an image from my phone, I get an Cannot load representation of type public.jpeg error. I've found some articles here on StackOverflow and some other forums where people state…

kalafun
- 3,512
- 6
- 35
- 49
2
votes
1 answer
Instance member 'pickImage' can't be accessed using static access
I have ran into a problem concerning my Flutter app , I've been following a tutorial on Youtube on how to use select picture from gallery and also camera in Flutter but have not been able to get the image picker function to work. It always returns…

Ayodeji Onibuje
- 27
- 1
- 4
2
votes
1 answer
AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:xxxx
I get this error when picking a photo from image picker on a real device. I stumbled upon lots of similar questions but haven’t quite found anything regarding this error when accessing image picker on real device. There aren’t any network requests…

andre
- 773
- 1
- 6
- 16
2
votes
2 answers
How to save image to device using expo
i'm working on app in expo to take and save image to device. I tried camera roll but it seems it's not supported in expo
so is there any way to save image to device using expo

raid benrabah
- 21
- 1
- 2
2
votes
1 answer
I made a simple app with image picker and image cropper pakage and when writing this code i got this error, Null check operator used on a null value
import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:image_cropper/image_cropper.dart';
import 'package:image_picker/image_picker.dart';
class ProfilePage…

Vipin
- 21
- 2
2
votes
1 answer
Ho do I view the pickImage XFile after deprecating the getImage imagePicker
When I changed the deprecated ImagePicker package getImage to pickImage the future image builder didnt show the image again how can I solve this problem.
final picker = ImagePicker();
late Future pickedFile =…

Bareq Raad
- 71
- 1
- 8
2
votes
1 answer
Flutter Image Picker not saved to Path
I am using image_picker: ^0.8.4+2 _package to load and save image to device path, both from gallery and camera in my flutter project.
The code runs well with no error or whatsoever.
But I found the app does not load any permission the first time…

Getuget
- 21
- 2
- 2