Skip to content

Instantly share code, notes, and snippets.

@russleyshaw
Created March 14, 2015 03:29
Show Gist options
  • Save russleyshaw/5389f48262cdfa4612da to your computer and use it in GitHub Desktop.
Save russleyshaw/5389f48262cdfa4612da to your computer and use it in GitHub Desktop.
Python Fu GIMP Hue Rotator
images = gimp.image_list()
image = images[0]
layers = image.layers
layer = image.layers[0]
steps = 60
OFFSET = 360/steps
ALL_HUES = 0
for i in xrange(steps):
pdb.gimp_hue_saturation(layer, ALL_HUES, OFFSET, 0, 0)
filename = 'hue_rotator/{}.jpeg'.format(i)
quality = 1
smoothing = 0
optimize = 0
progressive = 0
comment = 'Hue Rotator'
subsmp = 0
baseline = 1
restart = 0
dct = 0
pdb.file_jpeg_save(image, layer, filename, filename, quality, smoothing, optimize, progressive, comment, subsmp, baseline, restart, dct)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment