{"id":31179405,"url":"https://github.com/likeur/imop","last_synced_at":"2025-09-19T15:18:01.474Z","repository":{"id":310001589,"uuid":"1038291522","full_name":"Likeur/imop","owner":"Likeur","description":"imop est un outil en ligne de commande (cli) qui vous permet d'optimiser les images dans vos projets web et application mobile.","archived":false,"fork":false,"pushed_at":"2025-09-02T13:16:22.000Z","size":15,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-02T15:23:10.061Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Likeur.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}},"created_at":"2025-08-14T23:59:37.000Z","updated_at":"2025-09-02T13:16:26.000Z","dependencies_parsed_at":"2025-08-18T23:01:22.456Z","dependency_job_id":null,"html_url":"https://github.com/Likeur/imop","commit_stats":null,"previous_names":["likeur/imop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Likeur/imop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Likeur%2Fimop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Likeur%2Fimop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Likeur%2Fimop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Likeur%2Fimop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Likeur","download_url":"https://codeload.github.com/Likeur/imop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Likeur%2Fimop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275958203,"owners_count":25559736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-09-19T15:17:58.859Z","updated_at":"2025-09-19T15:18:01.471Z","avatar_url":"https://github.com/Likeur.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖼️ imop - Image Optimizer\n\n**imop** is a versatile command-line tool for optimizing and converting images. Built with Node.js, it offers both an interactive prompt and command-line arguments to make image optimization fast and efficient.\n\n### ✨ Features\n\n  * **Batch Image Optimization:** Process multiple images in a single run.\n  * **Format Conversion:** Easily convert images to **JPEG**, **PNG**, or **WebP**.\n  * **Interactive Mode:** A guided, step-by-step process for optimizing your images.\n  * **Command-Line Arguments:** Quickly run optimizations directly from your terminal.\n  * **Quality Control:** Optimizes images with a default quality setting of 80 to balance file size and visual fidelity.\n\n-----\n\n### 🚀 Getting Started\n\n#### Prerequisites\n\nMake sure you have Node.js installed on your system.\n\n#### Installation\n\n```bash\nnpm install -g imop\n```\nor if you prefer using npx:\n```bash\nnpx imop\n```\nnote that all the arguments still available when you use npx because it gonna download it temporary on your computer.\n\n#### Usage\n\n**imop** can be used in many: via interactive prompts or with command-line arguments.\n\n-----\n\n### 🖥️ Interactive Mode\n\nSimply run the script without any arguments to start the interactive mode. The tool will ask you for the input directory, output directory, and the desired output format.\n\n```bash\nimop\n```\n\nYou'll be guided through these prompts:\n\n  * `What is the path of the folder containing the images to optimize?`\n  * `What is the name of the folder for the optimized images?`\n  * `What output image format do you want?`\n\n-----\n\n### ⚙️ Command-Line Mode\n\nFor a faster workflow, you can specify all your options directly in the command. This is especially useful for scripting or repetitive tasks.\n\n#### Syntax\n\n```bash\nimop [options]\n```\n\n#### Options\n\n| Option | Alias | Description | Example |\n| :--- | :--- | :--- | :--- |\n| `--jpeg` | `-j` | Optimize images to **JPEG** format. | `imop.js --jpeg` |\n| `--png` | `-p` | Optimize images to **PNG** format. | `imop.js --png` |\n| `--webp` | `-w` | Optimize images to **WebP** format. | `imop.js --webp` |\n| `--input` | `-i` | Specify the **input directory** containing the source images. | `imop.js --input ./my-photos` |\n| `--output` | `-o` | Specify the **output directory** for the optimized images. | `imop.js --output ./compressed-images` |\n\n#### Examples\n\n**Optimize all images to WebP format:**\n\n```bash\nimop --webp\n```\n\n**Convert images from one folder to another in JPEG format:**\n\n```bash\nimop --jpeg --input ./source-images --output ./optimized-jpegs\n```\n\n**Use a combination of options with short aliases:**\n\n```bash\nimop -w -i ./photos -o ./output-folder\n```\n\n-----\n\n### 📝 Notes\n\n  * **Supported Formats:** The tool automatically detects and processes `.jpg`, `.jpeg`, `.png`, `.gif`, and `.webp` files from the source directory.\n  * **Output Directory:** If the specified output directory does not exist, **imop** will create it for you.\n  * **Default Quality:** All images are optimized with a quality setting of 80 to ensure a good balance between compression and visual quality.\n\ncoded with love by @likeur","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikeur%2Fimop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flikeur%2Fimop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikeur%2Fimop/lists"}