Skip to content

Instantly share code, notes, and snippets.

Created Nov 6, 2011
What would you like to do?
import os
for i in range(60):
os.system('convert 2.gif \( +clone -rotate %d \) -gravity center -compose Src -composite 2_%d.gif' % (i * 6, i))
t = """gifsicle -p 0,0 -S 500x500 -D background -d 6000 %d -V -o minutes.gif"""
print (t % " ".join(["2_%d.gif" % i for i in range(60)]))
# gifsicle -p 0,0 -S 500x500 -D background -d 100 2_0.gif 2_1.gif 2_2.gif 2_3.gif 2_4.gif 2_5.gif 2_6.gif 2_7.gif 2_8.gif 2_9.gif 2_10.gif 2_11.gif 2_12.gif 2_13.gif 2_14.gif 2_15.gif 2_16.gif 2_17.gif 2_18.gif 2_19.gif 2_20.gif 2_21.gif 2_22.gif 2_23.gif 2_24.gif 2_25.gif 2_26.gif 2_27.gif 2_28.gif 2_29.gif 2_30.gif 2_31.gif 2_32.gif 2_33.gif 2_34.gif 2_35.gif 2_36.gif 2_37.gif 2_38.gif 2_39.gif 2_40.gif 2_41.gif 2_42.gif 2_43.gif 2_44.gif 2_45.gif 2_46.gif 2_47.gif 2_48.gif 2_49.gif 2_50.gif 2_51.gif 2_52.gif 2_53.gif 2_54.gif 2_55.gif 2_56.gif 2_57.gif 2_58.gif 2_59.gif -V -o seconds.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment