{"id":32868432,"url":"https://github.com/ericdk89/image-convert","last_synced_at":"2025-11-09T08:02:45.015Z","repository":{"id":319518540,"uuid":"1078609987","full_name":"ericDK89/image-convert","owner":"ericDK89","description":"A command-line tool built with Java and Spring Shell to convert images from formats like PNG, JPEG, BMP, and GIF into the modern, efficient WebP format.","archived":false,"fork":false,"pushed_at":"2025-11-06T00:24:25.000Z","size":145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-06T02:30:32.148Z","etag":null,"topics":["imageio","java","shell","spring","webp"],"latest_commit_sha":null,"homepage":"","language":"Java","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/ericDK89.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-10-18T03:29:02.000Z","updated_at":"2025-11-06T00:24:30.000Z","dependencies_parsed_at":"2025-10-19T10:37:34.324Z","dependency_job_id":null,"html_url":"https://github.com/ericDK89/image-convert","commit_stats":null,"previous_names":["ericdk89/image-convert"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericDK89/image-convert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericDK89%2Fimage-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericDK89%2Fimage-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericDK89%2Fimage-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericDK89%2Fimage-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericDK89","download_url":"https://codeload.github.com/ericDK89/image-convert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericDK89%2Fimage-convert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283475139,"owners_count":26841941,"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-11-09T02:00:05.828Z","response_time":62,"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":["imageio","java","shell","spring","webp"],"created_at":"2025-11-09T08:01:09.441Z","updated_at":"2025-11-09T08:02:45.010Z","avatar_url":"https://github.com/ericDK89.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# image-convert\n\nA command-line tool built with Java and Spring Shell to convert images from formats like PNG, JPEG, BMP, and GIF into the modern, efficient WebP format.\n\n## Features\n\n*   **Single File Conversion:** Convert a single image file to WebP.\n*   **Batch Directory Conversion:** Convert all supported images within a specified directory.\n*   **Adjustable Quality:** Control the compression quality of the output WebP images.\n*   **Progress Bar:** Visual feedback on the progress of batch conversions.\n*   **Multiple Input Formats:** Supports `.jpg`, `.jpeg`, `.png`, `.bmp`, `.gif`, and `.tiff`.\n\n## Prerequisites\n\n*   Java 17 or later\n*   Maven (the project includes a Maven wrapper `mvnw`)\n\n## Installation and Setup\n\n1.  **Clone the repository:**\n    ```sh\n    git clone https://github.com/ericdk89/image-convert.git\n    cd image-convert\n    ```\n\n2.  **Build the project:**\n    Use the included Maven wrapper to build the project and create an executable JAR file.\n\n    On Linux/macOS:\n    ```sh\n    ./mvnw clean package\n    ```\n\n    On Windows:\n    ```sh\n    .\\mvnw.cmd clean package\n    ```\n    This will generate the JAR file in the `target/` directory (e.g., `target/image-convert-0.0.1-SNAPSHOT.jar`).\n\n## Usage\n\nRun the application from the command line using the generated JAR file. This will launch the Spring Shell interactive prompt.\n\n```sh\njava -jar target/image-convert-*.jar\n```\n\nOnce the shell is active, you can use the `webp` command to perform conversions.\n\nThe converted images are saved in the `src/static/images/` directory within the project folder.\n\n### Command Syntax\n\nThe primary command is `webp` with the following options:\n\n```\nwebp --s \u003cfile-path\u003e --q \u003cquality\u003e\nwebp --d \u003cdirectory-path\u003e --q \u003cquality\u003e\n```\n\n**Options:**\n\n*   `--s \u003cfile-path\u003e`: (Single) The path to a single image file you want to convert.\n*   `--d \u003cdirectory-path\u003e`: (Directory) The path to a directory containing images you want to convert.\n*   `--q \u003cquality\u003e`: (Quality) A floating-point number between `0.0` (lowest quality) and `1.0` (highest quality). The default is `0.75`.\n\n**Note:** You must use either `--s` or `--d`, but not both at the same time.\n\n### Examples\n\n#### Convert a Single Image\n\nTo convert a single file named `photo.png` with the default quality (0.75):\n\n```shell\nshell:\u003e webp --s /path/to/your/photo.png\n```\n\n#### Convert a Single Image with Custom Quality\n\nTo convert `photo.png` with a quality setting of 0.5:\n\n```shell\nshell:\u003e webp --s /path/to/your/photo.png --q 0.5\n```\n\n#### Convert All Images in a Directory\n\nTo convert all supported images in a directory named `my-pictures` with the default quality:\n\n```shell\nshell:\u003e webp --d /path/to/your/my-pictures\n```\nA progress bar will be displayed during the conversion process.\n\n```\nConverting Images |████████████████████████████████████████| 10/10 (100%)\n```\n\n## Core Dependencies\n\n*   **Spring Shell:** Provides the framework for the interactive command-line interface.\n*   **WebP ImageIO Sejda:** A library that adds WebP read/write capabilities to Java's ImageIO.\n*   **ProgressBar:** Used to create the command-line progress bar for batch operations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericdk89%2Fimage-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericdk89%2Fimage-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericdk89%2Fimage-convert/lists"}