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
.icofiles 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:
tesseractfor OCRpdftotextfrom Poppler for PDF text extractionqpdffor PDF split and mergepdfcropfor PDF cropmutoolfrom MuPDF, or ImageMagickmagick, 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac71831c2444f265e497d26797f12a65d97a301c18a26a21560ce2b16c0840c0
|
|
| MD5 |
fc1869d472c7e99126e56c49d994a8d1
|
|
| BLAKE2b-256 |
15fbfbf0d0599ac4b2f7c84f98855ed7e4227724e15adb779f22905fbf5d8935
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d74780d581a751cbd038694f51defacc3cf9ea70e720dd42484193c7fafd555f
|
|
| MD5 |
426313e85f28dbf62c855a1d4df327fb
|
|
| BLAKE2b-256 |
5f5306350d3da0ad0f20849c5c321adb86dd7f24934a8d8e9614bf9b1e9c61fc
|