Home > Back-end >  How to add a row of pixels at the bottom and to the right of an image?
How to add a row of pixels at the bottom and to the right of an image?

Time:04-30

So Im experiencing an issue with a framework that Im working with, where the images sort of get translated by 1 pixel downwards and one pixel to the left (making the pixel data wrong).

To counteract this I would like to add a one pixel "padding" then at the bottom & to the left. The script needs to be relatively fast as its an interactive software Im working with, so iterating over the pixels in a python for loop wont work as an option

  • Related