Are you extracting a frame from a video or cropping a image?
If you’re extracting a frame from a video, you can use OpenCV.
If you’re trying to crop a section from an image, you can use normal image processing libraries such as Pillow on Python.
If you want to move the image around, you can try Povray
If you want to quickly run a shell command on someplace like AWS, DigitalOcean or equivalent, you can use Python subprocess
If you’re uploading a few hundred images to a server and you want to adjust the pitch and roll, you can use Koen’s bash script.
It’s also possible that batch processing with hugin might meet your requirements.
https://theta360.guide/thetamedia/#_crop