First there's this now deleted question:
Which is followed by:
Crop the image using JavaScript
And then:
The OP seems to be asking the same question every time: Please help me write an application that crops and resizes an uploaded image using JavaScript or Angular. That said, each question provides different pieces of non-working code. Is the context provided on each of these different enough to warrant posting anew or should the OP have simply edited their original question?