Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
sudipto-img-transcode
Advanced tools
A Node.js library for converting images to next-gen formats (PNG, WebP, AVIF) with optimized quality settings.
SudiptoImgTranscode is a Node.js library designed to simplify the process of converting images to next-gen formats like PNG, WebP, and AVIF. It aims to optimize image quality and performance for web applications.
Ensure you have Node.js installed on your system. This library is tested with Node.js version 14.x and above.
Clone the repository and install its dependencies:
git clone https://github.com/aotr/SudiptoImgTranscode.git
cd SudiptoImgTranscode
npm install
To use as a standalone project for converting images:
app.js
with Node.js:node app.js
Follow the prompts to specify the input directory, output directory, and desired quality for the image conversions.
To use imageConverter.js
in your project for more customized integration:
imageConverter.js
into your project.ImageConverter
class:import ImageConverter from './path/to/imageConverter.js';
async function convertImages() {
const converter = new ImageConverter('/path/to/input', '/path/to/output', 80);
await converter.run();
}
convertImages().catch(console.error);
Replace /path/to/input
and /path/to/output
with the paths to your specific directories and adjust the quality as needed.
We welcome contributions to SudiptoImgTranscode! Please feel free to submit issues or pull requests on GitHub.
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
If you encounter any problems or have suggestions, please open an issue on the project's GitHub page.
FAQs
A Node.js library for converting images to next-gen formats (PNG, WebP, AVIF) with optimized quality settings.
We found that sudipto-img-transcode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.