Created
March 14, 2015 03:29
-
-
Save russleyshaw/5389f48262cdfa4612da to your computer and use it in GitHub Desktop.
Python Fu GIMP Hue Rotator
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
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