eugeneware / gifencoder

Server side animated gif generation for node.js
Other
472 stars 49 forks source link

How to create GIF from frames base64? #43

Open goodwin74 opened 4 years ago

goodwin74 commented 4 years ago

How create gif from base64? and print gifbase64 example: res.send(GifBase64);

var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var urlencodedParser = bodyParser.urlencoded(({ limit: '250mb', extended: true, parameterLimit: 100 }));
app.post('/', urlencodedParser, function(req,res){
        var frames = JSON.parse(req.body.frames);
        //frames = ["data:image/jpeg;base64,......","data:image/jpe...",,"data:ima...", "..."];
});
arnoudcommandeur commented 1 year ago

Hi @goodwin74 , have you found a solution for this?

arnoudcommandeur commented 1 year ago

I've finally solved it by using a Write Stream

Andrekarma commented 4 months ago

@arnoudcommandeur do you have a sample code of your implementation? Thanks!