Skip to main content

CLI tool for image manipulation

Project description

PIX

a simple image manipulation tool for the terminal

Features

  • Resize
  • Crop
  • Convert
  • Prune (remove low-quality images)
  • Rotate
  • Flip
  • Watermark
  • Text
  • Blur
  • Grayscale
  • Invert

Installation

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

Usage

Basic Usage

pix [COMMAND] [OPTIONS]

Replace [COMMAND] with the desired operation (convert, resize, or crop) and [OPTIONS] with the relevant options for your command.

Global Options

  • -v, --version: Display the version of the tool.
  • command: Specify the command to execute (convert, resize, or crop).

Commands

Convert

Converts images to a different format.

pix convert input [OPTIONS]

Options:

  • input: Input image or directory.
  • -o, --output: Output image or directory (default: current directory).
  • -f, --format: Output format (supported formats will be listed).
  • -q, --quality: Output quality (0-100, default: 95).
  • --no-optimize: Disable optimization.
  • --overwrite: Overwrite existing files.
  • --prefix: Prefix for the output file name.
  • --surfix: Suffix for the output file name.

Resize

Resizes images.

pix resize input [OPTIONS]

Options:

  • input: Input image or directory.
  • -o, --output: Output image or directory (default: current directory).
  • --overwrite: Overwrite existing files.
  • --size: Output size in width x height format (WxH).
  • --scale: Output scale (0.0-1.0).

Crop

Crops images.

pix crop input [OPTIONS]

Options:

  • input: Input image or directory.
  • -o, --output: Output image or directory (default: current directory).
  • --overwrite: Overwrite existing files.
  • --ratio: Aspect ratio (W:H), to be used with --align.
  • --size: Exact size and position as WxH+X+Y (e.g., 800x600+100+150).
  • --align: Alignment (top, bottom, left, right, center).

Prune

pix prune input [OPTIONS]

Options:

  • input: Input image or directory.
  • -r, --resolution: Minimum resolution (e.g. 512x512).
  • --dry-run: List files to be removed without deleting them.

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zz-pix-0.0.3.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

zz_pix-0.0.3-py3-none-any.whl (13.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page