To convert a PNG or JPEG with cavif, run cavif image.png or cavif photo.jpg in a terminal. By default, the tool writes an AVIF file beside the input with the same base name—for example, image.avif. You can install a prebuilt executable or use Rust’s Cargo, then adjust quality and encoding speed for your workflow.
Install cavif
The cavif-rs README points to prebuilt release downloads, including a portable Linux executable and executables for macOS and Windows. For the latest platform-specific files and instructions, check the project’s current release assets rather than assuming a particular filename or version.
| # | Preview | Product | Price | |
|---|---|---|---|---|
| 1 |
|
VHS to Digital Converter & RCA to HDMI Adapter USB Video Capture for VCR/DVD/AV/PS2/Wii,av to hdmi... | $34.90 | Buy on Amazon |
| 2 |
|
Image to PDF Converter | Buy on Amazon |
As an Amazon Associate I earn from qualifying purchases.
If you have Rust tooling installed, the package documentation lists this Cargo installation command: cargo install cavif. The docs.rs package page identifies version 1.6.0, dated 2025-06-21; that is a versioned package record, not a guarantee that it is the newest release available when you install.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Convert a PNG or JPEG
Open a terminal in the directory containing your image and run:
#1 Best Overall
- 2-in-1: vhs to digital converter & rca to hdmi converter! Digitize & Convert Simultaneously,Uniquely designed for both VHS to digital conversion and RCA to HDMI display output! Capture your old VHS tapes, VCRs, or PS2/Wii games to your computer via USB/Type-C port, while simultaneously viewing them in real-time on HDMI TVs/monitors. No need to buy separate devices—perfect for archiving family memories or retro gaming.
- USB-A & USB-C Dual Inputs for Universal Compatibility This VCR to digital converter Works with any computer! Connect via USB-A (for older PCs) or USB-C (for MacBook/Modern Laptops). Capture analog signals from VHS/DVD players, Hi8 cameras, or game consoles (PS2/Wii) and save them as MP4 files.
- Preserve Precious Memories in Digital Formats Rescue fading VHS tapes and convert them to digital files (1080p) for permanent storage or sharing. Compatible with a wide range of open capture software, supports batch conversion, clip editing, and direct upload to YouTube/Facebook. Ideal for weddings, birthdays, or vintage home videos.
- Usb video capture card for HDMI Live Preview & Multi-Device Support Watch your analog content on modern HDMI displays instantly! Convert RCA/AV signals to HDMI (Switch Function for 720p/1080p) for TVs, projectors, or gaming monitors. Bonus: Use the HDMI loop-through to preview digitization progress while capturing—no more guesswork!
- Retro Tech Revival: From VCRs to Wii Consoles Compatible with VHS/VCR/DVD players, Hi8 camcorders, PS2, Wii, and RCA-based devices. Includes RCA/AV cables and a USB-C adapter. Give your old gear new life—stream classic games, digitize tapes, or connect legacy devices to TVs effortlessly!
cavif image.png
The documented result is image.avif. For a JPEG, substitute its filename:
cavif photo.jpg
The README also documents converting multiple input images in one invocation and multi-threaded encoding. For an explicit destination, use -o; for example, cavif -o output.avif image.png. Use --overwrite when you intend to replace an existing output, and --quiet to suppress routine output.
Choose quality and speed settings
cavif documents --quality=n on a scale from 1 to 100, with a default of 80, and --speed=n from 1 to 10, with a default of 4. The project says the quality scale is only a rough approximation of JPEG’s and that lower speed settings can produce smaller files at the cost of slower encoding; higher speed settings can harm compression. These are the project’s usage guidance, not a measured guarantee for every image.
Recommended Free Tools
For example, to encode at quality 75 and speed 5:
cavif --quality=75 --speed=5 image.png
Choose settings by checking the resulting image at its intended display size and comparing the output file size with the original. A quality value of 100 is not lossless: cavif explicitly says it does not support lossless compression.
Rank #2
- All item converter to pdf
Check AVIF compatibility in your target viewers
The cavif-rs README says, “Images work in all modern browsers,” and lists Chrome 85 or later on desktop, Chrome on Android 12, Firefox 91, and Safari on iOS 16 or macOS Ventura as examples. Treat that list as the project’s documented compatibility guidance, not a universal guarantee for every device, browser build, or image feature.
The README also notes reported right-edge pink-line problems in Windows preview and very old Android decoders. Windows preview may not support 10-bit images; the project’s suggested workaround is to encode at 8-bit depth with --depth=8. Before distributing converted images, open them in the viewers and on the devices your audience actually uses.
When to use avifenc or Squoosh instead
AOMedia’s avifenc manual, dated 2025-04-11, documents a command-line encoder that accepts JPEG, PNG, and Y4M inputs and offers controls for color quality, speed, workers, bit depth, and lossless configuration. Google’s AVIF guide also documents Squoosh, a browser-based conversion option, and describes avifenc for batch work.
Pick a workflow based on the inputs and controls you need: cavif is a straightforward terminal option for PNG and JPEG; avifenc exposes additional documented controls and input types; Squoosh provides a browser-based path. The cited documentation does not provide a current, like-for-like benchmark of these tools, so it cannot establish which one is faster, produces smaller files, or looks better for your images.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

