Yara Utility Stack · v1.0 · Desktop · Linux
Yara Imcon
A fast, lightweight terminal image converter written entirely in pure Bash. Batch-convert between PNG, JPEG, WebP, AVIF, BMP, and TIFF with per-format quality control, image resizing, and EXIF metadata removal. ImageMagick is the only dependency.
View on GitLab
bash imcon.sh photo.png webp
id::yara-imcon · v1.0 · stable
StackYara Utility Stack
PlatformLinux · Terminal
LanguageBash 4.0+
FormatsPNG JPEG WebP AVIF BMP TIFF
DependencyImageMagick (convert)
Install./install.sh
LicenseMIT
Version
1.0
Stable release
Formats
6
PNG · JPEG · WebP · AVIF · BMP · TIFF
Batch
Yes
Entire directory at once
Dependency
ImageMagick
Only external tool needed
features
What Yara Imcon does
Multi-format conversion
Convert between PNG, JPEG, WebP, AVIF, BMP, and TIFF in any direction. All formats support both read and write operations.
Batch directory processing
Point Imcon at an entire directory and convert all images in one command. Live progress bar shows file-by-file progress with before/after size metrics.
Image resizing
Resize to a target width or height during conversion. Supports fit mode (maintain aspect ratio) and fill mode (crop to exact dimensions).
Per-format quality control
Set compression quality (0–100) per output format. JPEG and WebP quality defaults are tuned for a good size-to-quality tradeoff out of the box.
EXIF metadata removal
Strip EXIF, IPTC, and XMP metadata from output files to reduce file size and remove embedded location, camera, and authorship data.
Dry-run preview mode
Run with
--dry-run to preview what would be converted without touching any files — shows the full conversion plan before committing.quick start
How to run
| Single file | bash imcon.sh photo.png webp — convert photo.png to WebP |
| Batch directory | bash imcon.sh ./photos/ jpeg — convert all images in ./photos/ to JPEG |
| With resize | bash imcon.sh photo.png webp --width 1920 |
| With quality | bash imcon.sh photo.png webp --quality 85 |
| Strip EXIF | bash imcon.sh photo.jpg webp --strip-exif |
| Dry run | bash imcon.sh ./photos/ avif --dry-run |
| System install | ./install.sh — copies to /usr/local/bin/imcon |
| After install | imcon photo.png avif from anywhere |
| Repository | gitlab.com/samanscode/yara-imcon |
| Required | Bash 4.0+ · ImageMagick (convert command) |
| Developer | Saman Udayanga Wijesinghe |
| License | MIT |