publiclab / Leaflet.DistortableImage

A Leaflet extension to distort or "rubber sheet" images
https://publiclab.github.io/Leaflet.DistortableImage/examples/
BSD 2-Clause "Simplified" License
272 stars 285 forks source link

Crop Image tool #445

Open sashadev-sky opened 5 years ago

sashadev-sky commented 5 years ago

Let's add a tool to crop images? I would imagine this would be done by 1) Use the boxselector interface or something similar looking like a dashed area select box. 2) When the user hits enter to crop, use the bounds of the box and check to see if any img bounds are contained within it (similar to boxselector again) 3) Unsure whats appropriate here any idea @jywarren ? Ideally it would be uncroppable again like on an iPhone picture. I think we would want to use clip path

jywarren commented 5 years ago

We could do this with image-sequencer, but how do you think it should be stored/saved?

On Thu, Sep 26, 2019, 6:02 PM Sasha Boginsky notifications@github.com wrote:

Let's add a tool to crop images? I would imagine this would be done by

  1. Use the boxselector interface or something similar looking like a dashed area select box.
  2. When the user hits enter to crop, use the bounds of the box and check to see if any img bounds are contained within it (similar to boxselector again)
  3. Unsure whats appropriate here any idea @jywarren https://github.com/jywarren ? Ideally it would be uncroppable again like on an iPhone picture

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/Leaflet.DistortableImage/issues/445?email_source=notifications&email_token=AAAF6J5LPKNWBKXCZ5YG33DQLUWLTA5CNFSM4I27RGR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HOAHGYA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAF6J2TK2AGDLZFJB3PR7DQLUWLTANCNFSM4I27RGRQ .