Return a new PhotoImage based on this image but using only every x-th pixel in the X direction and every y-th pixel in the Y direction. If y is not given, it defaults to the same value as x.
tkinter/PhotoImage.subsample
PhotoImage.subsample