Skip to main content

Local-first CLI for image/PDF utilities, OCR, QR codes, icons, data URIs, and base64 workflows.

Project description

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

Links

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

mediautil_cli-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

mediautil_cli-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file mediautil_cli-0.1.1.tar.gz.

File metadata

  • Download URL: mediautil_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for mediautil_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ac71831c2444f265e497d26797f12a65d97a301c18a26a21560ce2b16c0840c0
MD5 fc1869d472c7e99126e56c49d994a8d1
BLAKE2b-256 15fbfbf0d0599ac4b2f7c84f98855ed7e4227724e15adb779f22905fbf5d8935

See more details on using hashes here.

File details

Details for the file mediautil_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mediautil_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for mediautil_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d74780d581a751cbd038694f51defacc3cf9ea70e720dd42484193c7fafd555f
MD5 426313e85f28dbf62c855a1d4df327fb
BLAKE2b-256 5f5306350d3da0ad0f20849c5c321adb86dd7f24934a8d8e9614bf9b1e9c61fc

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