{"id":30663336,"url":"https://github.com/nixuuu/image-optimizer","last_synced_at":"2026-04-20T13:04:11.788Z","repository":{"id":312533615,"uuid":"1047805221","full_name":"nixuuu/image-optimizer","owner":"nixuuu","description":"Fast CLI image optimizer for JPEG, PNG, and WebP with parallel processing and WebP lossless options","archived":false,"fork":false,"pushed_at":"2025-09-13T18:32:44.000Z","size":250,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-13T20:36:25.326Z","etag":null,"topics":["cli","image-compression","image-processing","linux-app","macos-app","rust","windows-app"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nixuuu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T09:17:12.000Z","updated_at":"2025-09-13T18:31:26.000Z","dependencies_parsed_at":"2025-08-31T11:33:21.835Z","dependency_job_id":"fadcc07f-3698-4711-a316-bdaab02bbdb5","html_url":"https://github.com/nixuuu/image-optimizer","commit_stats":null,"previous_names":["nixuuu/image-optimizer-rs","nixuuu/image-optimizer"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/nixuuu/image-optimizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixuuu%2Fimage-optimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixuuu%2Fimage-optimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixuuu%2Fimage-optimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixuuu%2Fimage-optimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nixuuu","download_url":"https://codeload.github.com/nixuuu/image-optimizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixuuu%2Fimage-optimizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32048446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","image-compression","image-processing","linux-app","macos-app","rust","windows-app"],"created_at":"2025-08-31T17:06:00.019Z","updated_at":"2026-04-20T13:04:11.736Z","avatar_url":"https://github.com/nixuuu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Optimizer\n\nA fast, parallel CLI tool for optimizing images (JPEG, PNG, WebP, SVG) written in Rust.\n\n## Features\n\n- **Multiple formats**: Supports JPEG, PNG, WebP, and SVG optimization\n- **High-quality compression**: Uses mozjpeg, oxipng (with zopfli compression by default), WebP encoders, and regex-based SVG optimization\n- **Parallel processing**: Optimizes multiple images concurrently for speed\n- **Flexible output**: In-place optimization or separate output directory\n- **Image resizing**: Optional resizing with `--max-size` parameter (applies to raster formats only)\n- **Backup support**: Create backup files before optimization\n- **Quality control**: Adjustable quality (1-100) or lossless compression (applies to raster formats only)\n- **Progress tracking**: Real-time progress bar with file-by-file status\n\n## Installation\n\n### From crates.io (Recommended)\n\n```bash\ncargo install image-optimizer\n```\n\n### Quick Install (Linux/macOS)\n\n```bash\ncurl -sSL https://raw.githubusercontent.com/nixuuu/image-optimizer/refs/heads/master/install.sh | bash\n```\n\nThis script will:\n- Detect your platform and architecture\n- Download prebuilt binaries (if available) or build from source\n- Install to `~/.local/bin` and configure your PATH\n\n### Manual Installation\n\n#### System Dependencies\n\nThis tool requires system libraries for JPEG optimization:\n\n**Ubuntu/Debian:**\n```bash\nsudo apt-get install libjpeg-dev\n```\n\n**macOS:**\n```bash\nbrew install mozjpeg\n```\n\n**Fedora/RHEL:**\n```bash\nsudo dnf install libjpeg-turbo-devel\n```\n\n#### Build from Source\n\n```bash\ngit clone https://github.com/nixuuu/image-optimizer.git\ncd image-optimizer\ncargo build --release\n```\n\n## Usage\n\n```bash\n# Basic usage - optimize images in place\nimage-optimizer -i ./images -r\n\n# Optimize to output directory with custom quality\nimage-optimizer -i input_dir -o output_dir --jpeg-quality 90\n\n# Create backups and use lossless compression\nimage-optimizer -i images --backup --webp-lossless\n\n# Optimize SVG files (removes metadata, comments, editor attributes)\nimage-optimizer -i icons/ -r\n\n# Resize raster images to max 1920px on longer edge\nimage-optimizer -i photos --max-size 1920\n\n# Use maximum PNG optimization level\nimage-optimizer -i images --png-optimization-level max\n\n# Use PNG optimization without zopfli compression\nimage-optimizer -i images --no-zopfli\n\n# Update to the latest version\nimage-optimizer --update\n```\n\n### Options\n\n- `-i, --input \u003cPATH\u003e` - Input directory to scan for images\n- `-o, --output \u003cPATH\u003e` - Output directory (optional, defaults to in-place)\n- `--backup` - Create backup files (.bak extension)\n- `--webp-lossless` - Use lossless compression for WebP\n- `--jpeg-quality \u003c1-100\u003e` - JPEG quality (default: 85, applies to raster formats only)\n- `-r, --recursive` - Recursively scan subdirectories\n- `--max-size \u003cPIXELS\u003e` - Maximum size for longer edge (resizes if larger, applies to raster formats only)\n- `--png-optimization-level \u003c0-6|max\u003e` - PNG optimization level (default: 2, max is alias for 6)\n- `--no-zopfli` - Disable zopfli compression for PNG optimization\n- `--update` - Update to the latest version from GitHub releases\n\n## Supported Formats\n\n### Raster Images\n- **JPEG** (.jpg, .jpeg) - Optimized with mozjpeg for superior compression\n- **PNG** (.png) - Optimized with oxipng (uses zopfli compression by default, can be disabled with --no-zopfli)\n- **WebP** (.webp) - Optimized with Google's WebP encoder\n\n### Vector Graphics  \n- **SVG** (.svg) - Optimized with regex-based processing that safely removes:\n  - XML comments and unnecessary whitespace\n  - Editor metadata (Inkscape, Adobe Illustrator, Sodipodi attributes)\n  - RDF metadata blocks and temporary editing data\n  - While preserving all visual elements, animations, styles, and interactive features\n\n## Performance\n\nThe tool uses parallel processing to optimize multiple images simultaneously, making it efficient for batch operations on large image collections.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixuuu%2Fimage-optimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnixuuu%2Fimage-optimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixuuu%2Fimage-optimizer/lists"}