how to crop images XD code example
Example: how to crop in adobe xd
Place the picture in xd.
Draw a rectangle on the artboard. (This will maintain the cropped size of img)
Select both of them, right click, mask with shape.
Adjust the picture to your needs.