Code Monkey home page Code Monkey logo

picturetoburn's Introduction

PictureToBurn

A python package for gif-making.

picturetoburn's People

Contributors

nathandemaria avatar jinyeom avatar

Stargazers

 avatar Jordan Hofker avatar

Watchers

James Cloos avatar  avatar

Forkers

c-m-hunt

picturetoburn's Issues

Gifs in Tweet Threads

I think this happens b/c it grabs a different video than I expect.

Reproduce

create_gif https://twitter.com/TheRealEmica/status/1170525766221783040?s=09

Traceback (most recent call last):
  File "C:/Users/nathan.demaria/AppData/Local/Continuum/miniconda3/Scripts/create_gif", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "C:\Users\nathan.demaria\github\PictureToBurn\bin\create_gif", line 43, in <module>
    Fire(convert)
  File "C:\Users\nathan.demaria\AppData\Local\Continuum\miniconda3\lib\site-packages\fire\core.py", line 127, in Fire
    component_trace = _Fire(component, args, context, name)
  File "C:\Users\nathan.demaria\AppData\Local\Continuum\miniconda3\lib\site-packages\fire\core.py", line 366, in _Fire
    component, remaining_args)
  File "C:\Users\nathan.demaria\AppData\Local\Continuum\miniconda3\lib\site-packages\fire\core.py", line 542, in _CallCallable
    result = fn(*varargs, **kwargs)
  File "C:\Users\nathan.demaria\github\PictureToBurn\bin\create_gif", line 22, in convert
    size_mb = os.path.getsize(gif) / 1000000
  File "C:\Users\nathan.demaria\AppData\Local\Continuum\miniconda3\lib\genericpath.py", line 50, in getsize
    return os.stat(filename).st_size
FileNotFoundError: [WinError 2] The system cannot find the file specified: '6pq5sqe6nYZJO1rz.gif'

Where's my gif?

Print out a path to the .gif created. Also maybe clean up the .mp4 from the Twitter gifs

Time Slice

Allow create_gif <video> <start> <end> to make a gif out of a time-slice of a video

YouTube

Support links to YouTube videos in create_gif

Docs!

Make a README:

  • install instructions
  • usage

Trello Webhook

Run create_gif automatically when a gif link is added to a Trello board. Webhook -> AWS lambda?

Gifs Too Big

This can make gifs that are too big to auto-display on Slack. Example: sad puppy. But I like gifs on Slack.

Giphy

Find a gif in giphy -> media -> mp4 (to get around the "this is a .webm" stupidness

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.