pavankris / PKImagePickerDemo

Replacement for ImagePicker which also combines camera and album
MIT License
100 stars 28 forks source link

Cropping? #11

Open timmolter opened 10 years ago

timmolter commented 10 years ago

Could cropping be added to this control? How hard would it be to do if at all possible?

pavankris commented 10 years ago

Do u mean cropping during the photo select/cancel view ?

timmolter commented 10 years ago

Yes. After it's selected (either from just taking a picture or choosing one) and before approving it (with the check mark). Perhaps there could be a predefined rectangle or square shape that would appear as a mask over the image the user could move it around and resize it. When the check mark is tapped, the original image would be cropped based on the mask's size and position.

The first attempt at such a feature would be just a non-resizable square that reaches across the view horizontally, and it could be moved up and down over the vertical image to pick a single square spot. The API would simply expose a flag to enable or disable this feature.

The second step would be a resizable square.

The third step would be a resizable rectangle (x and y adjustable).

mayooresan commented 9 years ago

Yeap. It'd be nice to have that feature.

pavankris commented 9 years ago

Yeah , working on that nw ..

mayooresan commented 9 years ago

gr8 thanks. Any ETA if possible :smile:

pavankris commented 9 years ago

Trying to see if i can get my thing done in a week or two, just swamped with other things ... will try my best to do it earlier :)

mayooresan commented 9 years ago

cool thanks :+1:

frranck commented 8 years ago

still no cropping ? :(