Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Remige is an advanced image compression framework, built as a fork of libSquoosh. By integrating Squoosh's powerful image codecs directly into JavaScript applications, Remige offers unparalleled compression performance and file size reduction. Designed fo
Remige is an advanced image compression framework, built as a fork of libSquoosh. By integrating Squoosh's powerful image codecs directly into JavaScript applications, Remige offers unparalleled compression performance and file size reduction. Designed for compatibility with the latest Node.js versions, Remige enhances image processing with modern features and optimized efficiency, making it the go-to solution for developers seeking top-tier image optimization.
ImagePool
.ImagePool
.Every star on this repository is a sign of encouragement, a vote of confidence, and a reminder that our work is making a difference. If this project has brought value to you, even in the smallest way, please consider showing your support by giving it a star. ⭐
"Star" button located at the top-right of the page, near the repository name.
Your star isn’t just a digital icon—it’s a beacon that tells us we're on the right path, that our efforts are appreciated, and that this work matters. It fuels our passion and drives us to keep improving, building, and sharing.
If you believe in what we’re doing, please share this project with others who might find it helpful. Together, we can create something truly meaningful.
Thank you for being part of this journey. Your support means the world to us. 🌍💖
$ npm install remige
ImagePool
and set up your image processing pipeline:import { ImagePool } from "remige";
import { cpus } from "os";
const imagePool = new ImagePool(cpus().length);
Ensure to only create one ImagePool
instance to avoid memory issues during parallel image processing.
All API remains same as @squoosh/lib
Ingest images using imagePool.ingestImage()
, accepting ArrayBuffer
from fs.readFile()
or fetch()
.
import fs from "fs/promises";
const file = await fs.readFile("./path/to/image.png");
const image = imagePool.ingestImage(file);
Preprocess and encode images to various formats:
const preprocessOptions = {
resize: {
width: 100,
height: 50,
},
};
await image.preprocess(preprocessOptions);
const encodeOptions = {
mozjpeg: {}, // default settings
jxl: {
quality: 90,
},
};
const result = await image.encode(encodeOptions);
Close the ImagePool
pipeline to prevent ingesting and encoding new images:
await imagePool.close();
Write encoded images to the file system:
const rawEncodedImage = image.encodedWith.mozjpeg.binary;
await fs.writeFile("/path/to/new/image.jpg", rawEncodedImage);
Extract decoded and encoded image information:
console.log(await image.decoded);
console.log(image.encodedWith.jxl);
Remige includes an experimental auto optimizer:
const encodeOptions = {
mozjpeg: "auto",
};
Identical Images but Different Size: Magic of Remige
This project is licensed under the Apache License 2.0.
We’re always open to contributions and fixing issues—your help makes this project better for everyone.
If you encounter any errors or issues, please don’t hesitate to raise an issue. This ensures we can address problems quickly and improve the project.
For those who want to contribute, we kindly ask you to review our Contribution Guidelines before getting started. This helps ensure that all contributions align with the project's direction and comply with our existing license.
We deeply appreciate everyone who contributes or raises issues—your efforts are crucial to building a stronger community. Together, we can create something truly impactful.
Thank you for being part of this journey!
For any questions, please reach out via hello@darsan.in or LinkedIn.
Remige is a forked version of libSquoosh, originally developed and maintained by the GoogleChromeLabs. We credit the Squoosh team for their foundational work and contributions to image compression technology.
FAQs
Remige is an advanced image compression framework, built as a fork of libSquoosh. By integrating Squoosh's powerful image codecs directly into JavaScript applications, Remige offers unparalleled compression performance and file size reduction. Designed fo
The npm package remige receives a total of 0 weekly downloads. As such, remige popularity was classified as not popular.
We found that remige demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.