For a data science project, I have to crop hundreds of images. I have found multiple ways to do this, for example with Photoshop or other editors, but i dont have those.
The images I have are sized 6663 x 8192, but I need to crop them to 512 x 512. This cropping needs to be done in the center of the image. So the image needs to be cropped to a 512 x 512 square cut out from the center of the image.
Does anyone know how to do this? I found some solutions using PIL, but i am unsure on how to do this exactly. Any help is greatly appreciated.