Panning an image and turning it into a video

https://github.com/ChaseLean/gpt-prompts

This image is a panoramic shot. 

Help me turn it into a video with aspect ratio 3:2, with the image filling the entire video (so the sides are cut off).  The video should be centered in the middle of the image.

Then, pan the video smoothly (with no sudden jumps) as follows:

Start: Center --> Right --> Center --> Left --> Center: End

Use the imageio library to help you. Save the frames directly to a video file instead of into a list.

Use a frame step of 8 pixels. If necessary, crop the edges