Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Dithering is an open-source image processing library written in Rust, designed to perform image dithering operations. It provides a collection of algorithms that can be used to convert images to a limited color palette, resulting in the illusion of additional colors. This library is licensed under the MIT license.
To install the library using pip, run the following command:
pip install dithering
Here's an example usage of the Dithering library in Python:
from PIL import Image
from dithering import ordered_dither
import numpy as np
input_image = np.array(Image.open('path/to/image.jpeg'))
output_image = ordered_dither(input_image, "Bayer2x2")
Original | Dithered |
---|---|
In the example above, we first import the necessary modules. Then, we load an image using the PIL library and convert it to a NumPy array. We pick a dither matrix ("Dither2x2
") and pass it along with the input image to the ordered_dither
function from the dithering
module. The function returns the dithered output image as a NumPy array.
Contributions to the Dithering library are welcome! If you want to contribute, please follow these steps:
main
branch.main
branch of the original repository.Please make sure to follow the code style and conventions used in the project.
The Dithering library is licensed under the MIT license. See the LICENSE file for more details.
If you have any questions, suggestions, or feedback regarding the Dithering library, you can reach out to us by creating an issue on the GitHub repository or contacting us via email at info@backyardml.se.
Feel free to explore the repository, submit bug reports, or request new features. We appreciate your interest and support in advancing the Dithering library.
FAQs
Efficient implementations of various image dithering methods.
We found that dithering 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.