-
Notifications
You must be signed in to change notification settings - Fork 202
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
Poor quality during crop #93
Comments
on the demo Future<void> _openImage() async {
final pickedFile =
await ImagePicker().pickImage(source: ImageSource.gallery);
final file = File(pickedFile?.path);
final sample = await ImageCrop.sampleImage(
file: file,
preferredSize: context.size?.longestSide.ceil(),
);
_sample?.delete();
_file?.delete();
setState(() {
_sample = sample;
_file = file;
});
} replace to Future<void> _openImage() async {
final pickedFile =
await ImagePicker().pickImage(source: ImageSource.gallery);
final file = File(pickedFile?.path);
// final sample = await ImageCrop.sampleImage(
// file: file,
// preferredSize: context.size?.longestSide.ceil(),
// );
//
// _sample?.delete();
_file?.delete();
setState(() {
_sample = file; // direct use origin file
_file = file;
});
} |
I had the same issue on android, the cropped image were twice smaller than the this PR fixed it #75 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I take a picture, the image have a good quality, but when I try to use it in Crop, it becomes completely blurry.
Here are two screenshots of the image in the camera and during the Crop:
This is on emulator (Pixel 4 API 30) but I have the same issue on my physical device (OnePlus 9 Pro).
You can find my code here
The text was updated successfully, but these errors were encountered: