GithubHelp home page GithubHelp logo

unityimagecropper's People

Contributors

michaelshum321 avatar yasirkula 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  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  avatar

unityimagecropper's Issues

First cropped image with wrong anchor position

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:

  • Open the demo;
  • Try to crop the left bottom of the image;
  • It will crop another place;

I tried mess with some options like pixelPerfect, but it didn't make any change to it.

Null texture returned when user does not change crop anchors

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;
		}*/

Rotate crop area?

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 menifest file with new gradle and build tools

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

Feature Request: Image cropper displays an oval but the output's full rectangle is filled

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!

Image Download Issue

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.

iOS crop not working properly

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!

Not working with ngui

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)

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.