ImageCropper.Forms | Xamarin.Forms plugin to crop and rotate photos | Form library
kandi X-RAY | ImageCropper.Forms Summary
kandi X-RAY | ImageCropper.Forms Summary
Xamarin.Forms plugin to crop and rotate photos. Supports Android and iOS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ImageCropper.Forms
ImageCropper.Forms Key Features
ImageCropper.Forms Examples and Code Snippets
Community Discussions
Trending Discussions on ImageCropper.Forms
QUESTION
issue is that in step#2, if user doesnt pick a options or simply closes displayAlert than activityIndicator
runs for ever. Any idea how can I stop Activity Indicator
if user closed displayAlert (In Step#2)?
ref: imagecropper plugin
Below is the full flow of code that you see:
- On MainPage - Start loading using
activityIndicator
- Open displayAlert, with 2 options: "upload image" or "take photo"
- Open camera
- Take Photo
- Conform photo
- go to main page and wait 2 seconds (this sucks but ok)
- open crop image editor
- Close crop image editor and go to main page
- Stop loading using
activityIndicator
defualt code from link
...ANSWER
Answered 2021-Jun-09 at 19:16Sorry for late responses, actually I want to put this in comment, but it's really hard to read in comment. I guess you can try this code:
QUESTION
ill take any help here.. I am using xamarin and would like to:
- Click on button
- Open Camera
- Take photo
- Crop Photo
- Create Folder in Gallery
- Save Cropped photo in new folder in Gallery
I am following tutorial - Ref: https://github.com/stormlion227/ImageCropper.Forms
Currently, When I tap on button, Camera opens up, but it doesnt crops or saves photo. Since Camera opens up, that means my set up and perrmission are correct.
Why this code isnt working from github and how can I crop photo? Please let me know what am I missing here.
after doing some debugging, following code is not getting runned. i this issue is with properties
...ANSWER
Answered 2021-May-10 at 08:15The plugin you used is too old. You could use ImageCropper.Forms.Fix.v2
instead.
Add the code below in your MainActivity:
QUESTION
I am using ImageCropper.Forms package for cropping images. It is working fine on the android part but when I try it on ios, I am getting the below exception:
Exception:>System.MissingMethodException: Method not found: System.Threading.Tasks.Task`1 Plugin.Media.Abstractions.IMedia.TakePhotoAsync(Plugin.Media.Abstractions.StoreCameraMediaOptions) at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:84 at Stormlion.ImageCropper.ImageCropper.Show (Xamarin.Forms.Page page, System.String imageFile) [0x00033] in <548dc893a11b47fe908c9c3d7f4a39ba>:0 at ImageCropDemo.MainPage.OnClickedRectangle (System.Object sender, System.EventArgs e) [0x00002] in /Users/companyname/Downloads/ImageCropDemo/ImageCropDemo/ImageCropDemo/MainPage.xaml.cs:29
Found the same question here, but it didn't solve my problem.
My Code
...ANSWER
Answered 2021-Jan-21 at 10:53The issue seems caused by the package itself . Here is a similar issue .
If you do want to implement it you could use the plugin Xamarin.Plugin.ImageEdit to edit your image .
Install it into your forms project and each platform project.
QUESTION
I am using MediaPlugin for opening Camera and Gallery to select pictures. After selecting a picture, I need to crop it before setting it on the UI. I have tried AllowCropping = true
in the camera, but it works only for windows and ios. For the camera in android and gallery on all platforms (android, ios, and windows) there is no crop option.
I tried ImageCropper.Forms package to implement the image cropping feature.
My Code:
...ANSWER
Answered 2021-Jan-20 at 12:21First of all, Add ImageCropper.Forms.Fix.v2 nuget package to your project.
Then, if you use AndroidX
, please change the code in tag of AndroidManifest.xaml
QUESTION
I am using ImageCropper.Forms for cropping the image selected from the camera and gallery.
My Code:
...ANSWER
Answered 2021-Jan-21 at 13:06as shown in the docs, use a Success
handler
QUESTION
I am using ImageCropper.Forms for cropping the image selected from the camera and gallery. I have 3 options for changing a profile picture; Take Photo, Upload from Gallery and Select Avatar. So for showing the Media options I am using a DisplayActionSheet
like below:
ANSWER
Answered 2021-Jan-21 at 11:41The default alert is been defined in the package . So I don't think we can block it directly . If you want to set the text of it you just need to set
QUESTION
I'm trying to use ImageCropper.Forms, I have followed all steps but it fails in initialization and throws this exception:
Method not found: System.Threading.Tasks.Task`1 Plugin.Media.Abstractions.IMedia.TakePhotoAsync(Plugin.Media.Abstractions.StoreCameraMediaOptions)
As you can see below, I'm doing all the steps recommended by oficial page: https://github.com/westito/ImageCropper.Forms
AndroidManifest
...ANSWER
Answered 2020-Jul-29 at 18:00I just have to install package ImageCropper.Forms.Fix from Nuget and everything starts to work as expected.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ImageCropper.Forms
This plugin uses the MediaPlugin. Be sure to complete the full setup this plugin. Please fully read through the MediaPlugin description.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page