I have a folder of greyscale images that are of random objects on a white background.
Essentially I need to reduce the size of every image - pixel-wise - by a factor of 1.51. Specifically, I need to reduce the number of non-white pixels by a factor of 1.51. Is there a way to do this without having to go in and change the number of pixels individually - as each of the images has a different number of non-white pixels (i.e. are of difference sizes and shapes)? Thank you!