Hacker News new | ask | show | jobs
by hugs 4279 days ago
I was really hoping this would work on the server-side, too. It didn't. :-( Or maybe I configured something wrong?

Here's what I found:

    $ git clone https://github.com/yahoo/gifshot.git
    $ cd gifshot
    $ npm install
    $ node
    
    > var gifshot = require('./build/gifshot')
    
    > gifshot.createGIF(
    ...   {'images':['random-image.png'],
    .....    'text': 'Test'},
    ...    function(obj) { 
    .....      console.log('Done!');
    .....      console.log(obj);
    ..... })
    Done!
    { errorCode: 'canvas',
      errorMsg: 'Canvas elements are not supported in your browser',
      error: true }
1 comments

Obviously, the getUserMedia aspect of the project can't be done server-side, but we can look into supporting the existing video->GIF and images->GIF logic.
Right, I don't care so much about the getUserMedia part at the moment. But what you've done is totally awesome, by the way! With that said, I was looking for "take an array of images, spit out a gif file, and, oh yeah, put this text along the bottom."