This does the following :
The first image displayed is the original. The second is the cropped.
- opening a local image file, using
- converting it into a
- croping it to keep only the center with
- display the crop in a canvas using
The cropped image discards the top/bottom/left/right quarters from the input, leaving only the middle half.
Select an image file: