Skip to main content

Image and video utils...

Project description

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 git+https://gitlab.inria.fr/nmaignan/image-video-utils.git

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

uv add git+https://gitlab.inria.fr/nmaignan/image-video-utils.git

The CLI

You can install the CLI tool with pipx or uv:

uv tool install git+https://gitlab.inria.fr/nmaignan/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.

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

image_video_utils-1.0.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

image_video_utils-1.0.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file image_video_utils-1.0.0.tar.gz.

File metadata

  • Download URL: image_video_utils-1.0.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for image_video_utils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 93bd44b41019412fb6a0d979ccc661da55fffa69dd9fabdeb0801312dd9b5ee3
MD5 71b56150e53ada4154eeda83c5d6e7c1
BLAKE2b-256 8a58b5350cdd6851b7a0d81bb37db7b30ca6ececb00140a8b5083687988e793b

See more details on using hashes here.

File details

Details for the file image_video_utils-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: image_video_utils-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for image_video_utils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bf6c9a4077ffbbd41606d84caad95876dc4eaa1be58bee5911288d06d7ef798
MD5 ef7fc96575f475ea07914c863a642f89
BLAKE2b-256 a0786101f2adac98aacdfd0c8936557aed128177659e5d33f16fdf9cfcd45cde

See more details on using hashes here.

Supported by

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