yasirkula / unityimagecropper Goto Github PK
View Code? Open in Web Editor NEWA uGUI based image cropping solution for Unity 3D
License: MIT License
A uGUI based image cropping solution for Unity 3D
License: MIT License
Hi, using this plugin i noted taht the first cropped image gets wrong position, it takes some offset, or maybe somewhere in the middle of the image.
I tried to look at the source, and i do believe it is something inside the "CropSelection" function, but since i don't understand half of the stuff going on there, i couldn't get to anywhere.
After the first croped image, it works pretty well, it also happen in the Demo.
Reprodution steps:
I tried mess with some options like pixelPerfect, but it didn't make any change to it.
Cropper should return the texture regardless of whether user has changed anchor positions etc.
I commented out lines in ImageCropper.cs below as a temp fix
Line 442
/*if( !gameObject.activeInHierarchy )
{
Debug.LogError( "Cropper is not visible!" );
return null;
}*/
Hey there,
Just wondering if its possible to rotate the crop area. I am trying to crop and ellipse shape from images and the ellipse isn't always vertical or horizontal.
Thanks
Issue with ImageCrop Manifest file
Output: /Users/noman/Desktop/Klinc/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml:51: error: unexpected element found in .
Here is complete error
Android resource linking failed
Output: /Users/noman/Desktop/Klinc/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml:51: error: unexpected element found in .
Command: /Users/noman/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-4818971-osx.jar/2bd91fa07f22d2b7286fb36c2600929e/aapt2-3.2.0-4818971-osx/aapt2 link -I
/Users/noman/Library/Android/sdk_old/platforms/android-28/android.jar
--manifest
/Users/noman/Desktop/Klinc/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml
-o
/Users/noman/Desktop/Klinc/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_
-R
@/Users/noman/Desktop/Klinc/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
/Users/noman/Desktop/Klinc/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r
--custom-package
com.klinc.android
-0
apk
-0
.unity3d
-0
.ress
-0
.resource
-0
.obb
-0
google-services-desktop.json
--output-text-symbols
/Users/noman/Desktop/Klinc/build/intermediates/symbols/debug/R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-osx Daemon #0
Hi there,
When I use the Image Cropper where the selection is set to a circle, the output has the circle filled w/ the picture, and the outer portion is blacked out.
Is there a Setting I can use so the outer portion is filled with the picture? So, even though the selection is an oval shape, the portion outside of the oval is filled with the original picture.
Thank you!
I have issue with this plugin.
You plugin work with some pc.but some pc not work.
Issue In this Class File:
PickerController.cs
private IEnumerator LoadImage(string path)
{
var url = "file://" + path;
Debug.Log("Pick Url:" + url);
var www = new WWW(url);
yield return www;
//----------Error This Line---------------------
}
See My Console =
You are trying to load data from a www stream which had the following error when downloading.
Couldn't read a file:// file
UnityEngine.WWW:get_texture()
Kakera.c__Iterator0:MoveNext() (at Assets/GallaryPicker/Unimgpicker/Samples/PickerController.cs:36)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
Any Idea how to solve this bug???
Thanks in advance.
I'd first like to thank you very much for this plugin! It's great and exactly what I was looking for. Congratulations for the amazing job done so far!
But for some reason the crop doesn't work well on iOS. The first time I open it doesn't work at all. I'm using the Native Gallery plugin as well, which works, but after I get the picture back, is when the problem starts.
I'm not sure if I am doing something wrong, because on Android it works perfectly...
UPDATE: I must apologize but I think the issue comes from the Gallery, not from the crop! ๐ Sorry!
Hi, I am using it with ngui, it is working on unity editor but not working on android phone. I have tried to destroy ngui event listner by doing that it works but there is a catch it work after opening image cropper and closing it one time then work on android phone. Any suggestion how to make it work on android phone. (cropper rectangle not wroking on android, it doesn't move and touch not working while rotate button working fine)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.