I would like to slice up an image in python and paste it back together again as a window.
The tiles measure as 8pixels by 9pixels and each row needs to skip 1 pixel
I would then need to merge the tiles back together again with a 1 pixel padding around each tile to give a windowed effect.
The image is black and white but for the example I have used color to show that the windowed effect would need to have a white background


Update: change tiles dimension to bigger for illustration, you can adjust per your need
Use this:
Update 1: Because you want to latter remove tiles, I added code that can help you with that. Now all you have to do is changing variables in
tiles config,white padding,tile index to be removed:test.jpg
res.jpg
remove_tiles.jpg

print(image.shape, new_img.shape)gives(952, 1429, 3) (1332, 1899, 3)