How could I create a jigsaw puzzle with any png/jpeg?

I’m having trouble figuring out where to start on making my jigsaw puzzle game. I’m viewing this as a 2D game where I can automatically generate x number of pieces from a custom jpeg/png and have it split into a jigsaw puzzle.

I’m specifically wondering how could I take the image in (I’m assuming turning it into a texture2D) and then split it into x number of pieces that are in the shape of puzzle pieces with the image on the piece being a section of the main image.

Are there any tutorials regarding this? How would I go about this?

Thank you.

Yes.
8191350--1067859--Screen Shot 2022-06-08 at 8.31.04 PM.jpg