Coder Social home page Coder Social logo

yankeetube / jsquash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jamsinclair/jsquash

0.0 0.0 0.0 2.34 MB

Browser & V8 Runtime focussed wasm bundles derived from the Squoosh App.

License: Apache License 2.0

Shell 0.32% JavaScript 30.23% C++ 23.95% TypeScript 35.97% Makefile 8.81% Dockerfile 0.71%

jsquash's Introduction

jSquash ๐Ÿฅ

Collection of WebAssembly image codecs that support the browser and are derived from the Squoosh App

Squoosh already provides a Node.js library.

The aim of this library is to provide an easy experience to encode, decode and modify images with the tools you know and love from Squoosh in the Browser and V8 runtimes ๐Ÿ–ฅ๏ธ.

jSquash name is inspired by jQuery and Squoosh. It symbolizes the browser support focus of these packages.

Differences with Squoosh

  • The codecs and tools are built for both Web and Web Worker environments
  • No dynamic code execution, can be run in strict environments that do not allow code evaluation. Like Cloudflare Workers.
  • Does not rely on TextEncoder/TextDecoder API (could reduce performance) but allows it to be run in simpler V8 runtimes that only support UTF-8 (Cloudflare Workers, Vercel Edge Functions etc.)

Packages

Examples

Known Issues

Vite Project throws TypeError: Failed to construct 'URL': Invalid URL

This affects WASM modules using JS glue code provided by rust wasm-pack.

As a workaround, update your vite.config.js file with the optimizeDeps property. Put affected module names in the exclude array.

import { defineConfig } from 'vite'

export default defineConfig({
  optimizeDeps: {
    exclude: ["@jsquash/png"]
  }
})

jsquash's People

Contributors

jamsinclair avatar dependabot[bot] avatar rovinglight avatar

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.