Created
July 28, 2020 04:32
-
-
Save willhyper/c6c72da9bee7cbabad4b58ac0f7585d3 to your computer and use it in GitHub Desktop.
tile photo 2 by 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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