{"id":19000607,"url":"https://github.com/hun756/stb_cli_bw_converter","last_synced_at":"2025-10-22T03:09:18.799Z","repository":{"id":217700952,"uuid":"744472853","full_name":"hun756/stb_cli_bw_converter","owner":"hun756","description":"C++ Parallel Command Line Black White Image Converter using STB Library","archived":false,"fork":false,"pushed_at":"2024-01-17T11:21:08.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T18:18:24.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/hun756.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}},"created_at":"2024-01-17T11:21:06.000Z","updated_at":"2024-01-17T15:21:59.000Z","dependencies_parsed_at":"2024-01-18T00:20:33.049Z","dependency_job_id":"50cfc4fe-59df-4eed-8da1-924e7cc49077","html_url":"https://github.com/hun756/stb_cli_bw_converter","commit_stats":null,"previous_names":["hun756/stb_cli_bw_converter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hun756%2Fstb_cli_bw_converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hun756%2Fstb_cli_bw_converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hun756%2Fstb_cli_bw_converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hun756%2Fstb_cli_bw_converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hun756","download_url":"https://codeload.github.com/hun756/stb_cli_bw_converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240018701,"owners_count":19734874,"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","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":"2024-11-08T18:07:49.087Z","updated_at":"2025-10-22T03:09:18.708Z","avatar_url":"https://github.com/hun756.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Converter: Efficient Parallel C++ Image Processing Tool\n## Introduction\nWelcome to the Black-White Image Converter, a sophisticated and efficient C++ tool for image processing. This tool stands out for its versatility in handling various image formats and its capability to process images into black and white using a highly optimized, multi-threaded approach. Ideal for both developers and enthusiasts in image processing, this tool leverages modern C++ features and libraries to deliver a top-notch performance.\n\n## Features\n\n- **Multiple Image Formats**: Supports PNG, JPEG, BMP, and TGA formats for both input and output.\n- **Efficient Black and White Conversion**: Converts color images to black and white using a multi-threaded approach, optimizing performance on multi-core processors.\n- **Modular Design**: Utilizes a strategy pattern for saving images, allowing for easy extension to support additional image formats.\n- **Error Handling**: Robust error handling for file reading and writing, ensuring reliability.\n- **CLI Integration**: Command-line interface for easy usage and integration into various workflows.\n\n## Dependencies\n\n- STB\n: A set of single-file libraries for C/C++ for loading images, etc.\n- CLI11\n: A command-line parser for C++.\n\n## Installation\nFollow these steps to install and compile the STB CLI Black \u0026amp; White Image Converter:\n\n### Prerequisites\n\n- CMake (minimum version 3.15)\n- A C++ compiler that supports C++17 standard\n- Git (for fetching dependencies)\n\n### Steps\n\n- **Clone the Repository**\n\nFirst, clone this repository to your local machine:\n\n```bash\ngit clone https://github.com/hun756/stb_cli_bw_converter.git\ncd stb_cli_bw_converter\n```\n\n- **Fetch Dependencies**\n\nThe project uses CMake's `FetchContent` module to automatically download and set up dependencies (`CLI11` and `stb` libraries). The CMake script handles this, so no manual downloading is required.\n- **Configure with CMake**\n\nCreate a build directory and run CMake to configure the project:\n\n```bash\nmkdir build\ncd build\ncmake ..\n```\n\n- **Compile the Project**\n\nCompile the project using CMake:\n\n```bash\ncmake --build .\n```\n\nThis step will create the `stb_cli_bw_converter` executable within the build directory.\n- **Running the Executable**\n\nAfter successful compilation, you can run the executable directly from the build directory:\n\n\n```bash\n./stb_cli_bw_converter -i \u003cinput_image_path\u003e -o \u003coutput_image_path\u003e\n```\n\nReplace `\u003cinput_image_path\u003e` and `\u003coutput_image_path\u003e` with your specific file paths.\n\n### Additional Information\n\n- The project is set to use `-Wall -Wextra -pedantic` compile options for rigorous error checking and `-Oz` for optimized binary size.\n- Ensure your C++ compiler supports C++17 standard to successfully compile this project.\n\n\n## Usage\nTo use the tool, run the compiled executable with the required parameters.\n\n```bash\n./stb_cli_bw_converter -i \u003cinput_image_path\u003e -o \u003coutput_image_path\u003e\n```\n\n- `-i, --input`: Specify the input image file path.\n- `-o, --output`: Specify the output image file path.\n\n## How It Works\nThe tool loads an image using the STB library, processes it into black and white using a custom `BlackAndWhiteProcessor`, and saves it in the desired format. The saving strategy is determined based on the file extension, offering flexibility and ease of extension.\n\n## Extending the Tool\nTo add support for additional image formats, simply extend the `SaveStrategy` class and integrate your new class into the `ImageConverter`.\n\n## Contribution\nContributions to enhance the tool or add more features are always welcome. Please adhere to standard coding conventions and add unit tests where applicable.\n\n## License\nThis project is licensed under \u003ca target=\"_new\"\u003eMIT License\u003c/a\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhun756%2Fstb_cli_bw_converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhun756%2Fstb_cli_bw_converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhun756%2Fstb_cli_bw_converter/lists"}