Last active
August 29, 2015 14:08
-
-
Save marthall/a72add609ea9ff306b3a to your computer and use it in GitHub Desktop.
This file contains 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
from scipy.misc.pilutil import imread, imsave | |
import numpy as np | |
einstein = imread('infile.png') | |
final_image = np.multiply(einstein, 1.0) # Funker ikke | |
final_image = np.multiply(einstein, 1) # Funker | |
final_image = np.multiply(einstein, 1.0).astype(int) # Funker fortsatt ikke | |
imsave('outfile.png', final_image) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment