Skip to main content

Image & Video Utils

Python badge MIT License

uv badge Ruff badge ty badge bear-ified

This repository provides a Python module for interacting with image and video files using sensible defaults and clear, consistent interfaces.

✨ Features

  • An ImageResolution class to represent the resolution of images or video frames.
  • A reshape function to resize images easily.
  • A VideoMetadata class to read video information such as the number of frames, frame rate, or codec.
  • Multiple functions to read and write videos as NumPy arrays, image files, or video files.
  • A simple CLI to extract frames or encode videos.

📦 Installation

The module

You can install image_video_utils directly from source using pip:

pip install image-video-utils

You can also use another Python package manager such as uv:

uv add image-video-utils

The CLI

You can install the CLI tool with pipx or uv:

uv tool install image-video-utils

🧪 Usage

The module

Import the required utilities in your Python code:

from image_video_utils.video import write_video_from_iterable

The CLI

The CLI is available via:

ivutils --help

📚 Documentation

The documentation is generated using pdoc and is available as a GitLab Page.

Release files for image-video-utils 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for image-video-utils 1.0.1
File Size Uploaded
image_video_utils-1.0.1.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for image-video-utils 1.0.1
File Interpreter ABI Platform
image_video_utils-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.1 kB

Release files / image_video_utils-1.0.1.tar.gz

Download URL image_video_utils-1.0.1.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8f314b3440f65d6b2c40f9aae9eaa7d6b54db4474e0bd359bfabce066b39777c
BLAKE2b-256 checksum
How to use checksums
5805e5e6c95097ef1f41de4ebc6a97c8369dcd5fbeb41fc20f1fc4547307eff7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / image_video_utils-1.0.1-py3-none-any.whl

Download URL image_video_utils-1.0.1-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e9c4d19eb0794e5dd05efa1624cfca0d204f9e0b92b2dea5c8036794d43359f
BLAKE2b-256 checksum
How to use checksums
38cff8cc0f794cf4a3a762b97afdec5e11803479d4ef0facb21aba4d23a2a3d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page