Coder Social home page Coder Social logo

API docs? about canvas-gif HOT 4 CLOSED

newtykip avatar newtykip commented on August 17, 2024
API docs?

from canvas-gif.

Comments (4)

newtykip avatar newtykip commented on August 17, 2024

Something like that definitely is possible, with v1 and the upcoming v2! The current version just provides access to an instance of node-canvas for each frame, and v2 will offer a similar API while dropping node-canvas as a dependency for significant speed increases and a more fluent API!

from canvas-gif.

newtykip avatar newtykip commented on August 17, 2024

Oh yeah, also documentation will be coming alongside V2 - I just didn't see much need for in-depth documentation for V1 due to the fact it is a single function project

from canvas-gif.

dcsan avatar dcsan commented on August 17, 2024

Thanks for the quikc reply! OK interesting. are you moving to sharp?

i found node-canvas is a bit more tricky to install - on an M1 mac at least.

SVG support would be nice too, i have that working with sharp now, even for embedded images
lovell/sharp#2844 (comment)

But i had problems with most of those npm plugins for GIF stuff and ended up making just a batch tool since CLI imagemagick is pretty reliable.
https://github.com/dcsan/pixtools/blob/main/tools/composite.sh

interested to see how you're going to make it work!

GitHub
Contribute to dcsan/pixtools development by creating an account on GitHub.

from canvas-gif.

newtykip avatar newtykip commented on August 17, 2024

Yeah, the next update should mark a complete transition to sharp! Just running a little behind where I want to be right now because of how much exams are piling on right now (and sadly this will be the case for a hot second :/)

Also yeah, I've had a lot of problems with node gif tools - that's why I'm trying to outsource as much of it as I can to lightweight, well maintained projects liek sharp and potentially gm in the future, just so it has polish and is as fast as I can possibly make it. I may try and make my own optimisations later down the line, but for now this will be a massive improvement anyways!

from canvas-gif.

Related Issues (9)

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.