Skip to content

Pictures zoomed in and stretched vertically #37

Description

@skypanther

I'm trying to use SquareCamera actually in a square...pictures are coming out quite zoomed in and stretched vertically.

camera = SquareCamera.createView({
	top: 80,
	left: 0,
	height: Alloy.Globals.deviceWidth,
	width: Alloy.Globals.deviceWidth,
	detectCodes: false,
	backgroundColor: "#000",
	forceHorizontal: false,
	backQuality: SquareCamera.QUALITY_HD, // Optional Defaults to QUALITY_HD
	camera: "back",
	/*		transform: Ti.UI.create2DMatrix().scale(1),*/
	zIndex: 1
});
camera.addEventListener('success', saveImage);
$.win.add(camera);

This picture was of my keyboard. In the preview before I took the picture, I'd estimate that the full height of the keyboard and about a third of its width were visible. However, the resulting photo shows just the keys in the lower-right of the preview, quite zoomed in and stretched vertically.

n7w8gcizss

If I uncomment the transform, the stretching is not as bad, but the photo is still zoomed in to where I see just a couple of the keys. If I set the transform to a scale less than 1, the camera preview doesn't fill the view area and crashes when I try to snap a photo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions