Used Model: qwen3-coder-next


Prompt 1:
I need a small python program which is able of editing pictures in their dimension. I have a folder with *.jpg pictures which have a dimension of 4080 × 3072. I woul like ot cut on the left and right some pixels that the resolution is then 3072 × 3072.
Now your task is to write that python program that it cuts off on the left and right 504 pixels each. Then save the result as a new picture into a sub-folder with the same name but add 3072_3072 as extension to the file name.

Prompt 2:
Now write a second python program which will then re-size the images to a target resolution of 1024 × 1024 and place those pictures into a sub-folder with the name re-size.