News for hackers. Stuff that matters.
Re:Gifshot: JS library to create animated GIFs from media st... by robinhoodexe on Tuesday September 30, 2014 @04:02PM (#8390794)
I wish we could move away from the awful format that is animated gif and use something much better in terms of compression, color support and frame rate. Like webm.[1][2]

[1]http://blog.4chan.org/post/81896300203/webm-support-on-4chan

[2]http://blog.smartbear.com/devops/gif-is-dead-long-live-webm/

[3]http://motherboard.vice.com/read/what-is-webm-and-can-it-det...

Re:Gifshot: JS library to create animated GIFs from media st... by Maxious on Tuesday September 30, 2014 @08:27PM (#8392213)
At least we have http://gfycat.com/ now. WebM for those who can, original gif for those who can't.
Re:Gifshot: JS library to create animated GIFs from media st... by malnourish on Tuesday September 30, 2014 @08:32PM (#8392229)
I personally think http://mediacru.sh is a better choice. Free and open source. I'm not sure if it display a .gif if the user doesn't have HTML5 video compatibility.
Re:Gifshot: JS library to create animated GIFs from media st... by rich_harris on Tuesday September 30, 2014 @04:42PM (#8391057)
This looks really awesome - nice work Greg and team. It's depressing when someone releases an open source library that does something novel using interesting technologies, has a lot of potential real-world use cases, and clearly took a TON of work, and the responses range from 'I don't like GIFs' to 'There's already a library that has GIF in the name so I'm going to assume this is redundant and leave a passive-aggressive comment'. What's wrong with you people?!
Re:Gifshot: JS library to create animated GIFs from media st... by gregfranko on Tuesday September 30, 2014 @04:58PM (#8391178)
Rich, you are the best
Re:Gifshot: JS library to create animated GIFs from media st... by jmhobbs on Tuesday September 30, 2014 @04:14PM (#8390869)
Re:Gifshot: JS library to create animated GIFs from media st... by gregfranko on Tuesday September 30, 2014 @04:25PM (#8390937)
Gifshot also includes getUserMedia (webcam) functionality, is a full client-side solution, and has a simple API (easier to use than gif.js)
Re:Gifshot: JS library to create animated GIFs from media st... by hugs on Tuesday September 30, 2014 @06:09PM (#8391640)
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 }
Re:Gifshot: JS library to create animated GIFs from media st... by gregfranko on Tuesday September 30, 2014 @06:12PM (#8391667)
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.
Re:Gifshot: JS library to create animated GIFs from media st... by hugs on Tuesday September 30, 2014 @06:15PM (#8391685)
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."
Re:Gifshot: JS library to create animated GIFs from media st... by skrowl on Tuesday September 30, 2014 @04:07PM (#8390828)
Isn't this kind of backwards when we have tools like http://gfycat.com/ that can make MP4/WebM?

Animated GIFs are HORRIBLE in terms of file size and quality compared to actual MP4/WebM video files, which are supported by all modern browsers.

Re:Gifshot: JS library to create animated GIFs from media st... by gregfranko on Tuesday September 30, 2014 @04:08PM (#8390832)
This is client-side JS solution. Completely different.
Re:Gifshot: JS library to create animated GIFs from media st... by binaryjohn on Tuesday September 30, 2014 @06:50PM (#8391857)
Very cool project! Is there any word on getUserMedia for IOS Safari?
Re:Gifshot: JS library to create animated GIFs from media st... by ChaseWest on Tuesday September 30, 2014 @07:06PM (#8391935)
Currently there's no word on support for IOS8 Safari that I've seen...here's to hoping that it'll come along soon though :D
Re:Gifshot: JS library to create animated GIFs from media st... by andresn on Tuesday September 30, 2014 @03:08PM (#8390443)
Too cool.
Re:Gifshot: JS library to create animated GIFs from media st... by elemenofi on Tuesday September 30, 2014 @05:27PM (#8391373)
i love this! laptop camera to gif? yes please
Re:Gifshot: JS library to create animated GIFs from media st... by elemenofi on Tuesday September 30, 2014 @05:25PM (#8391363)
so nice