Coder Social home page Coder Social logo

xam.plugins.imagecropper's People

Contributors

jessejiang0214 avatar rafagg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

xam.plugins.imagecropper's Issues

[UIImage croppedImageWithFrame:angle:]: unrecognized selector sent to instance

I am getting a crash in my app when I am tapping done after cropping my image. See stack trace. It's working fine in the simulator but crashing on the device (Iphone 6 IOS 10 and iphone 4s IOS 9).

Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[UIImage croppedImageWithFrame:angle:]: unrecognized selector sent to instance 0x17a46040
Native stack trace:
0 CoreFoundation 0x24827933 + 150
1 libobjc.A.dylib 0x23fc2e17 objc_exception_throw + 38
2 CoreFoundation 0x2482d2b5 + 0
3 CoreFoundation 0x2482aee1 + 700
4 CoreFoundation 0x24756238 _CF_forwarding_prep_0 + 24
5 BWF.iOS 0x00098fd5 -[TOCropViewController doneButtonTapped] + 2356
6 BWF.iOS 0x000959e3 _35-[TOCropViewController viewDidLoad]block_invoke + 30
7 BWF.iOS 0x0009b235 -[TOCropToolbar buttonTapped:] + 616
8 UIKit 0x28dda755 + 80
9 UIKit 0x28dda6e1 + 64
10 UIKit 0x28dc26d3 + 466
11 UIKit 0x28dda005 + 604
12 UIKit 0x28dd9c7f + 646
13 UIKit 0x28dd268f + 642
14 UIKit 0x28da3125 + 204
15 UIKit 0x28da16d3 + 5010
16 CoreFoundation 0x247e9dff + 14
17 CoreFoundation 0x247e99ed + 452
18 CoreFoundation 0x247e7d5b + 794
19 CoreFoundation 0x24737229 CFRunLoopRunSpecific + 520
20 CoreFoundation 0x24737015 CFRunLoopRunInMode + 108
21 GraphicsServices 0x25d27ac9 GSEventRunModal + 160
22 UIKit 0x28e0b189 UIApplicationMain + 144
23 libXamarin.iOS.dll.dylib 0x0069aa08 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 272
24 libXamarin.iOS.dll.dylib 0x0060b6d0 UIKit_UIApplication_Main_string___intptr_intptr + 52
25 libXamarin.iOS.dll.dylib 0x0060b690 UIKit_UIApplication_Main_string___string_string + 204
26 libBWF.iOS.exe.dylib 0x0054ffdc BWF_iOS_Application_Main_string
+ 188
27 libmscorlib.dll.dylib 0x00b179f0 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
28 libmonosgen-2.0.dylib 0x002a2bfd mono_jit_runtime_invoke + 1652
29 libmonosgen-2.0.dylib 0x002fa0a1 do_runtime_invoke + 78
30 libmonosgen-2.0.dylib 0x002fbc81 mono_runtime_exec_main + 608
31 libmonosgen-2.0.dylib 0x002fb96f mono_runtime_run_main + 630
32 libmonosgen-2.0.dylib 0x0028d21f mono_jit_exec + 162
33 libxamarin-debug.dylib 0x005183fc xamarin_main + 2508
34 BWF.iOS 0x000c265f main + 112
35 libdyld.dylib 0x243df873 + 2

at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/src/UIKit/UIApplication.cs:63
at BWF.iOS.Application.Main (System.String[] args) [0x00008] in /Users/henrikhansen/Projects/BWF/BWF/iOS/Main.cs:17

Upload to Apple Store

How do I upload an app to the apple store with the IOS plugin? How do I run make before posting to the store? On the devices it works fine, but the apple store rejects me because the plugin should be included. Thanks!

SafeArea seems to be ignored

Hello,
I have custom CropViewPagerenderer which implements the ImageCropper for IOS. It renders a PCL CropView which is a ContentPage. The CropView class implements the use safe area

On<Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);

But it seems this is being ignored. Do you know if ImageCropper supports SafeArea for IphoneX?

MT1302: Could not extract the native library

After updating from version 1.0.1 to 1.1.0 or 1.2.0 I get the following error when building the project:

`MTOUCH` : warning MT1302: Could not extract the native library 'libTOCropViewControllerSDK.a' from '.../iOS/obj/iPhoneSimulator/Debug/device-builds/iphone10.3-11.4/mtouch-cache/libTOCropViewControllerSDK.a'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').
clang : error : linker command failed with exit code 1 (use -v to see invocation)
error MT5209 : Native linking error : file not found: .../iOS/obj/iPhoneSimulator/Debug/device-builds/iphone10.3-11.4/mtouch-cache/libTOCropViewControllerSDK.a
MTOUCH : error MT5202: Native linking failed. Please review the build log.

Unrecognized selector sent to instance

I have this exception message when i clicked "Done" button during cropping of image.

Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[UIImage croppedImageWithFrame:angle:]: unrecognized selector sent to instance 0x170480a50
Native stack trace:
0 CoreFoundation 0x0000000189c02ff0 + 148
1 libobjc.A.dylib 0x0000000188664538 objc_exception_throw + 56
2 CoreFoundation 0x0000000189c09ef4 + 0
3 CoreFoundation 0x0000000189c06f4c + 916
4 CoreFoundation 0x0000000189b02d2c _CF_forwarding_prep_0 + 92
5 PocketBeatiOS 0x00000001000d82cc -[TOCropViewController doneButtonTapped] + 2060
6 PocketBeatiOS 0x00000001000d4cb0 _35-[TOCropViewController viewDidLoad]block_invoke + 36
7 PocketBeatiOS 0x00000001000da6b8 -[TOCropToolbar buttonTapped:] + 772
8 UIKit 0x000000018fd670ec + 96
9 UIKit 0x000000018fd6706c + 80
10 UIKit 0x000000018fd515e0 + 440
11 UIKit 0x000000018fd66950 + 576
12 UIKit 0x000000018fd6646c + 2480
13 UIKit 0x000000018fd61804 + 3192
14 UIKit 0x000000018fd32418 + 340
15 UIKit 0x000000019052bf64 + 2400
16 UIKit 0x00000001905266c0 + 4268
17 UIKit 0x0000000190526aec + 148
18 CoreFoundation 0x0000000189bb1424 + 24
19 CoreFoundation 0x0000000189bb0d94 + 540
20 CoreFoundation 0x0000000189bae9a0 + 744
21 CoreFoundation 0x0000000189aded94 CFRunLoopRunSpecific + 424
22 GraphicsServices 0x000000018b548074 GSEventRunModal + 100
23 UIKit 0x000000018fd97130 UIApplicationMain + 208
24 PocketBeatiOS 0x0000000102478444 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 340
25 PocketBeatiOS 0x0000000101dc8e1c UIKit_UIApplication_Main_string___intptr_intptr + 44
26 PocketBeatiOS 0x0000000101dc8cdc UIKit_UIApplication_Main_string___string_string + 172
27 PocketBeatiOS 0x0000000100236b60 PocketBeat_iOS_Application_Main_string
+ 128
28 PocketBeatiOS 0x00000001006c2f84 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
29 PocketBeatiOS 0x0000000100122300 mono_jit_runtime_invoke + 836
30 PocketBeatiOS 0x000000010018be1c do_runtime_invoke + 112
31 PocketBeatiOS 0x000000010018ead4 do_exec_main_checked + 152
32 PocketBeatiOS 0x000000010010c428 mono_jit_exec + 268
33 PocketBeatiOS 0x000000010022df98 xamarin_main + 2128
34 PocketBeatiOS 0x0000000102b479a0 main + 96
35 libdyld.dylib 0x0000000188aed59c + 4

Done event - Question

Question

I have button on subview of Cropper and i want to call override void DidCropToImage() when i press the button in subview of cropper screen. I need to crop the image once i clicked the button (like "done").
Any hints or sample?

Keeping aspect ratio

Hi,

I would like to keep the aspect ratio of the image to a square. Users are not allowed to crop the image in any other shape than a square. How do I do this?

Error while running sample code for IOS - Error - Framework not found

When I tried to run the code for IOS simulator, I received below error.

MTOUCH : warning MT1302: Could not extract the native framework 'TOCropViewController.framework' from '/Users/admin/Desktop/Xam.Plugins.ImageCropper-master/Sample/iOS/obj/iPhoneSimulator/Debug/mtouch-cache/TOCropViewController.framework.zip'. Please ensure the native framework was properly embedded in the managed assembly (if the assembly was built using a binding project, the native framework must be included in the project, and its Build Action must be 'ObjcBindingNativeFramework').
clang : error : linker command failed with exit code 1 (use -v to see invocation)
error MT5209 : Native linking error : framework not found TOCropViewController
MTOUCH : error MT5202: Native linking failed. Please review the build log.
1 Warning(s)
3 Error(s)

contains incomplete bitcode

Hi @jessejiang0214,

While upload IPA I am getting below error.

ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'GoodsManV1.iOS.app/Frameworks/TOCropViewController.framework/TOCropViewController' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."

Rotation of image without changing the frame of Crop Rect from Landscape to portrate

Goals

I want to rotate image but i don't want to change the form of crop rect as of now it's changing the frame of Crop rect.

Expected Results

Image should rotate but Crop Frame should remain same as it was before rotation. Like Crop frame is 4:3 and we are rotation image, in this case, image should rotate but frame should remain in 4:3 it should not change to 3:4.

SIGABRT while executing native code.

I got this message when i launch the apps then Choose "Take Photo" or "Photo Library"

Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

Failed to Stop app: An error occured on client IDB430795 while executing a reply for topic xvs/idb/4.3.0.795/stop-app
The app has been terminated.
The app has been terminated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.