Skip to content

Instantly share code, notes, and snippets.

@loganwilliams
Last active December 23, 2015 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loganwilliams/6565614 to your computer and use it in GitHub Desktop.
Save loganwilliams/6565614 to your computer and use it in GitHub Desktop.
overflow rainbows
import math
from scipy.misc import imread, imsave
import numpy as np
num_images = 2025
mult_range = np.logspace(0,1.3,num_images)
for i in range(num_images):
print(str(i))
a = imread('IMG_1037/IMG_1037 ' + str(i+1).zfill(4) + '.jpg')
b = a*mult_range[i]
imsave('IMG_1037/a/e' + str(i) + '.jpg', np.uint8(b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment