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.
Python package wrapping the gifsicle library for editing and optimizing gifs.
As usual, just download it using pip:
pip install pygifsicle
While running the installation, on MacOS the setup will automatically install gifsicle using Brew.
On Linux you will need to install gifsicle using apt-get as follows:
sudo apt-get install gifsicle
On Windows you will need to download and install the correct port of the library for your OS.
The library is currently pretty plain: it offers a wrapper to gifsicle and a method to optimize gifs, wrapping the options for gifsicle.
To optimize a gif, use the following:
from pygifsicle import optimize
optimize("path_to_my_gif.gif")
To run gifsicle from Python use the following:
from pygifsicle import gifsicle
gifsicle(
sources=["list.gif", "of.gif", "gifs.gif"], # or a single_file.gif
destination="destination.gif", # or just omit it and will use the first source provided.
optimize=False, # Whether to add the optimize flag or not
colors=256, # Number of colors to use
options=["--verbose"] # Options to use.
)
Learn more about the general wrapper by reading the function documentation.
One of the most common issues you can get, especially on Windows, is that simply the gifsicle library is not available system-wide. Do try to run gifsicle
in your terminal to check if the library is properly installed.
Wanna add another wrapper for easier usage? Do a pull request!
Did you find an error or weird behavior? Open an issue!
FAQs
Python package wrapping the gifsicle library for editing and optimizing gifs.
We found that pygifsicle 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.