Skip to content

Instantly share code, notes, and snippets.

@willhyper
Created July 28, 2020 04:32
Show Gist options
  • Save willhyper/c6c72da9bee7cbabad4b58ac0f7585d3 to your computer and use it in GitHub Desktop.
Save willhyper/c6c72da9bee7cbabad4b58ac0f7585d3 to your computer and use it in GitHub Desktop.
tile photo 2 by 3
import sys
img_name = sys.argv[1]
import matplotlib.pyplot as plt
import numpy as np
im = plt.imread(img_name)
im23 = np.tile(im, [2,3,1])
plt.imsave("output.jpg", im23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment