Share your repls and programming experiences

← Back to all posts
Rotatify - Turn any still image into a spinning gif!
h
MarcusWeinberger (589)

Try it out!

Made with inspiration from @turbio's repl.

API documentatoion

there's not much - we only have 2 routes

make it spin

import requests
r = requests.post(
    "https://rotatify.marcusweinberger.repl.co/spin",
    data={
        "inc": 10, # how much to rotate the image in one frame (default: 10)
        "speed": 33, # higher is quicker (default: 33 - looks nice)
    },
    files={
        "image": open("test.png", "rb"),
    }
print(r.url) # because it redirects here

Uploaded images are cached in the server until a reboot. They can be viewed here

Commentshotnewtop
CodingCactus (3088)

oops, I uploaded it twice by accident

MarcusWeinberger (589)

@CodingCactus No worries! It's a cute image :)

CodingCactus (3088)

@MarcusWeinberger lol, thanks I want it to go slower though, is it possible for you to have a preview section before you upload it?
Also, a message telling you that it has been successfully uploaded would be nice (so I don't upload it twice again) :)

MarcusWeinberger (589)

@CodingCactus Ooh that's a good idea, tbh HTML or JavaScript or whatnot is very much not my strong point. But I like the idea, and I'll look into it