Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
asset-converter
Advanced tools
Boost your web performance by converting and optimizing image assets with this robust Node.js tool.
Readme
Asset Converter is a Node.js package that converts and optimizes image assets. It converts PNG and JPEG images to WebP format and generates lower-resolution versions of the images.
Before using the Asset Converter package, make sure you have the following prerequisites installed on your system:
If you don't have Node.js and npm installed, you can download and install them from the official Node.js website: https://nodejs.org
To install the Asset Converter package, use npm:
#!/bin/bash
npm install asset-converter
After installing the package, you can use it as a command-line tool:
#!/bin/bash
npx asset-converter [PATH] [FLAGS]
Replace [PATH]
with the path to the directory or image file you want to convert.
You can use the following flags with the Asset Converter package:
-r
: Optimize images in the whole folder tree, create low-dpi and webp versions, and create a parent folder if necessary.-o
: Optimize an image or the images contained in a folder without creating a new parent folder.-u
: Optimizes the image if it is not already optimized and creates or replaces a new WebP and lowdpi version.-f
: Forces the execution of the command even if the image is already optimized.Examples:
#!/bin/bash
npx asset-converter /path/to/images -r
#!/bin/bash
npx asset-converter /path/to/image.jpg -o
#!/bin/bash
npx asset-converter /path/to/images -or
In the first example, the command will optimize the images in the specified folder and its subfolders, create low-dpi and webp versions, and create a parent folder if necessary.
In the second example, the command will optimize a single image or multiple images in a folder without creating a new parent folder.
In the third example, the command will optimize the images in the specified folder and its subfolders, create low-dpi and webp versions, and optimize a single image or multiple images in a folder without creating a new parent folder.
If you need assistance with the usage of the Asset Converter package, you can refer to the documentation or visit the project's repository for more information.
This software is licensed under the Creative Commons Attribution-NonCommercial (CC BY-NC) license.
You are free to:
Under the following terms:
For more details about the license, please visit: https://creativecommons.org/licenses/by-nc/4.0/
This project uses the following packages:
This package was developed by:
We also want to thank the open-source community for their contributions and support.
FAQs
Boost your web performance by converting and optimizing image assets with this robust Node.js tool.
The npm package asset-converter receives a total of 1 weekly downloads. As such, asset-converter popularity was classified as not popular.
We found that asset-converter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.