Yet another big problem of the Internet era tackled by Mathematics. Looping GIFs are a very popular form of art on the Web, with two dedicated forums on Reddit (r/perfectloops and r/cinemagraphs) and countless Tumblr pages. Finding and extracting well-looping segments from a movie requires much attention and patience, and will likely leave you like this in front of your computer: To make things ea
![An algorithm to extract looping GIFs from videos - __del__( self )](https://cdn-ak-scissors.b.st-hatena.com/image/square/0015333400c1feb131a9036dae3d673c24e3a50c/height=288;version=1;width=512/http%3A%2F%2Fzulko.github.io%2Fimages%2Floopsvideo%2Ftrineq1.png)