Skip to main content

mediautil-cli

mediautil is a local-first command-line utility for everyday media chores that should not require uploading private files to web tools. It gives developers and power users one consistent CLI for images, PDFs, OCR, QR codes, icons, data URIs, and base64 workflows.

This PyPI package installs a launcher named mediautil. The launcher downloads the matching Rust binary from GitHub Releases on first run and then executes it.

Install

pip install mediautil-cli

Other install options:

cargo install mediautil
npm install -g @harivilasp/mediautil
brew install harivilasp/tap/mediautil

What It Does

  • Resize, crop, convert, and inspect images.
  • Generate .ico files from source images.
  • Convert images to data: URIs for CSS, HTML, and prototypes.
  • Generate and read QR codes.
  • Encode and decode files with base64, including PDFs.
  • Extract text from images with local Tesseract OCR.
  • Extract, split, merge, crop, and convert PDFs through local PDF tools.

External Tools

Core image, QR, data URI, and base64 commands work without extra tools.

PDF and OCR commands use local command-line tools when needed:

  • tesseract for OCR
  • pdftotext from Poppler for PDF text extraction
  • qpdf for PDF split and merge
  • pdfcrop for PDF crop
  • mutool from MuPDF, or ImageMagick magick, for PDF conversion

Check your machine:

mediautil doctor

Examples

mediautil image resize input.png output.webp --width 1200 --height 800
mediautil image crop input.png crop.png --x 20 --y 20 --width 400 --height 300
mediautil image icon logo.png favicon.ico --size 256
mediautil image data-uri logo.png
mediautil qr gen "https://example.com" qr.png
mediautil qr read qr.png
mediautil base64 encode report.pdf --output report.pdf.b64
mediautil base64 decode report.pdf.b64 --output report.pdf
mediautil ocr screenshot.png --lang eng
mediautil pdf text document.pdf
mediautil pdf split document.pdf page-1.pdf --pages 1
mediautil pdf merge chapter1.pdf chapter2.pdf --output book.pdf
mediautil pdf crop document.pdf cropped.pdf
mediautil pdf convert document.pdf page-%d.png

Metadata

Release files for mediautil-cli 0.1.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 mediautil-cli 0.1.1
File Size Uploaded Provenance Actions
mediautil_cli-0.1.1.tar.gz 3.3 kB Without provenance Details for mediautil_cli-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mediautil-cli 0.1.1
File Interpreter ABI Platform Actions
mediautil_cli-0.1.1-py3-none-any.whl Python 3 none any Details for mediautil_cli-0.1.1-py3-none-any.whl

Total release size: 6.9 kB

Release files / mediautil_cli-0.1.1.tar.gz

Download URL mediautil_cli-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ac71831c2444f265e497d26797f12a65d97a301c18a26a21560ce2b16c0840c0
BLAKE2b-256 checksum
How to use checksums
15fbfbf0d0599ac4b2f7c84f98855ed7e4227724e15adb779f22905fbf5d8935
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / mediautil_cli-0.1.1-py3-none-any.whl

Download URL mediautil_cli-0.1.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d74780d581a751cbd038694f51defacc3cf9ea70e720dd42484193c7fafd555f
BLAKE2b-256 checksum
How to use checksums
5f5306350d3da0ad0f20849c5c321adb86dd7f24934a8d8e9614bf9b1e9c61fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for mediautil-cli 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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