Coder Social home page Coder Social logo

brunoluiz / gifsane-extension Goto Github PK

View Code? Open in Web Editor NEW
23.0 4.0 2.0 27.43 MB

⏯ Converts GIFs to sane controllable embed video players

License: GNU Affero General Public License v3.0

JavaScript 100.00%
gif converter ffmpeg wasm chrome-extension webextension firefox-extension chrome ffmpegwasm

gifsane-extension's Introduction

GIFSane

Converts GIFs to sane controllable embed video players Basically does something browsers should do natively. If your favourite platform doesn't convert user GIFs into videos, this extension will help you.

The animation above uses WebM (more optimised than GIF) which is not currently supported for now

Install

Due to the usage of WASM, is a bit tricky to upload this extension into web extension stores.

  • Chrome and other Chromium browsers

    • Go to chrome://extensions/
    • Enable the Developer mode (toggle on top right corner)
    • Load unpacked and point to the extension folder
  • Firefox:

    • Run npm run link:firefox (or run the script present on the package.json script for this task)
    • Go to about:debugging
    • Load temporary add-on... and point to the extension manifest.json

Try it out

Here is a short GIF you can try to convert once you install the extension. You need to Right Click -> GIFSane and choose your preferred conversion method.

Caveats

  • It uses ffmpeg.wasm, which is quite slow for long videos
  • It uses Manifest V2 because some WASM CSP directives are not implemented and ffmpeg.wasm uses document selectors within its code. To port it to Manifest V3, the code will need to be placed in a worker which doesn't have access to the DOM (document).
  • It can't be published on Chrome Store due to Manifest V2 :)
  • It will stop working in January 2023 in Chrome if this can't be ported to Manifest V3.

Related notes and blog posts

To-do

  • Add support to sending to a remote server
  • Write down landing page
  • Try to replace FFMPEG with something else?
  • Deal with .webp (ffmpegwasm doesn't seem to like those)

Attributions

gifsane-extension's People

Contributors

brunoluiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

web86 mbaneshi

gifsane-extension's Issues

HELP NEEDED - Not able to run it in local system

I am not able to run the extension in my local system. The extension is loaded but while converting GIF to video it is neither giving an error nor loading anything else and the loader is displayed

The following are the configurations:
Browser: Chrome 109.0.5414.75
Machine: Windows 10

Steps:

  1. npm install
  2. Open the dev menu and load the extension

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.