Socket
Socket
Sign inDemoInstall

zz-pix

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zz-pix

CLI tool for image manipulation


Maintainers
1

PIX

PyPI - Version PyPI - License Downloads

PyPI - Python Version

A simple image manipulation tool for the terminal.

⭐️ Like this repo? please consider a star!

💡 This project is still earily in its development. Please report any bugs or issues you encounter.

🌟 Features

  • Resize
  • Crop
  • Convert
  • Prune (remove low-quality images)
  • Caption (add text & metadata to images)
  • Transparency
  • Watermark
  • Grayscale

💻 Installation

pip install zz-pix

From Source

git clone https://github.com/sean1832/pix.git
cd pix
pip install .

🔨 Usage

Basic Usage

pix [COMMAND] [OPTIONS]

Replace [COMMAND] with the desired operation and [OPTIONS] with the relevant options for your command.

Global Options

  • -v, --version: Display the version of the tool.
  • -h, --help: Display the help message.

Commands

CommandDescription
convertConverts images to a different format
resizeResizes images
cropCrops images
pruneRemoves images smaller than specified resolution

Command Options

Convert

Converts images to a different formats. Currently supports JPEG, PNG, WEBP, TIFF, ICO, AVIF, HEIF, BMP.

pix convert input.jpg output.webp [OPTIONS]
OptionInput TypeDescriptionDefault
inputStringInput image or directoryN/A
outputStringOutput image or directoryCurrent dir.
-f, --formatStringOutput format (supported formats listed)N/A
-q, --qualityIntegerOutput quality (0-100)95
--no-optimizeFlagDisable optimizationN/A
-o, --overwriteFlagOverwrite existing filesN/A
-t, --transparentFlagPreserve transparencyN/A
--prefixStringPrefix for the output file name""
--surfixStringSuffix for the output file name""
Resize

Resizes images to a specified size or scale.

pix resize input.jpg output.jpg [OPTIONS]
OptionInput TypeDescriptionDefault
inputStringInput image or directoryN/A
outputStringOutput image or directoryCurrent dir.
--overwriteFlagOverwrite existing filesN/A
--sizeStringOutput size (WxH)N/A
--scaleFloatOutput scale (0.0-1.0)N/A
Crop

Crops images to a specified size and position.

pix crop input.jpg output.jpg [OPTIONS]
OptionInput TypeDescriptionDefault
inputStringInput image or directoryN/A
outputStringOutput image or directoryCurrent dir.
--overwriteFlagOverwrite existing filesN/A
--ratioStringAspect ratio (W:H), combined with --alignN/A
--sizeStringExact size and position as WxH+X+YN/A
--alignStringAlignment (top, bottom, left, right, center)N/A
Prune

Removes images smaller than a specified resolution.

pix prune ./images [OPTIONS]
OptionInput TypeDescriptionDefault
inputStringInput image or directoryN/A
-r, --resolutionStringMinimum resolution (WxH)N/A
--dry-runFlagList files to be removed without deleting themN/A

License

Apache-2.0

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc