Skip to content
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

If you don't specify an Album, the ANE creates an image of 1px x 1px #41

Open
interactivemartin opened this issue Aug 30, 2015 · 1 comment

Comments

@interactivemartin
Copy link

This works:

camera.displayCamera(onDisplayCameraFinished, 1000, 1000, false, false, "Album");

This doesn't (it creates a 1px x 1px image):
camera.displayCamera(onDisplayCameraFinished, 1000, 1000);

Peaking your AirImage.as I see that you are not setting the maxImageWidth and maxImageHeight, if there is no AlbumName provided, which can be the cause for this glitch.

I do not wish to save captured images locally, or at least not at all in the user's cameraRoll.

Can you correct it? :) Thanks!

        if(_isAndroid) {
            if (albumName != null) _context.call("displayCamera", maxImageWidth, maxImageHeight, allowVideo, crop, albumName, chatLink);
            else _context.call("displayCamera", allowVideo, crop);
        } else {
            if (albumName != null) _context.call("displayCamera", maxImageWidth, maxImageHeight, allowVideo, crop, albumName);
            else _context.call("displayCamera", allowVideo, crop);
        }
@jkpatel1463
Copy link

jkpatel1463 commented Sep 14, 2017

Hello All

Same result is found for Image picker for Android. I specified -1 as width and height and it returns 1x1 image. I need same image as it is without change of the image's dimension. It works in iPhone while android returns 1x1 image.

Here is my code:

if (AirImagePicker.instance.getGalleryPermissionStatus() ==AirImagePickerPermissionStatus.DENIED 
|| AirImagePicker.instance.getGalleryPermissionStatus() ==AirImagePickerPermissionStatus.RESTRICTED)
{
	//show popup which inform user that he do not approve the permission
	// to access photos/Storage
	return;
}
else
{
	AirImagePicker.instance.displayImagePicker(-1, -1, false);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants