{"id":18886950,"url":"https://github.com/lostjared/image_convert20","last_synced_at":"2026-05-04T19:42:16.950Z","repository":{"id":230686205,"uuid":"779931552","full_name":"lostjared/image_convert20","owner":"lostjared","description":"Image Conversion Tool written in C++20","archived":false,"fork":false,"pushed_at":"2024-04-01T21:30:28.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T05:17:50.901Z","etag":null,"topics":["cpp20","file-format","image-conversion","opencv"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostjared.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-03-31T07:30:51.000Z","updated_at":"2024-03-31T07:59:24.000Z","dependencies_parsed_at":"2024-03-31T08:28:37.460Z","dependency_job_id":"fc3b3abc-66af-4e06-8690-444e4d2bd111","html_url":"https://github.com/lostjared/image_convert20","commit_stats":null,"previous_names":["lostjared/image_convert20"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fimage_convert20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fimage_convert20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fimage_convert20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fimage_convert20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostjared","download_url":"https://codeload.github.com/lostjared/image_convert20/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859566,"owners_count":19708861,"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":["cpp20","file-format","image-conversion","opencv"],"created_at":"2024-11-08T07:32:22.364Z","updated_at":"2026-05-04T19:42:16.945Z","avatar_url":"https://github.com/lostjared.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Image File Conversion/Resize Tool\n\nThis tool is designed for converting and resizing image files. It leverages the power of OpenCV to handle various image operations efficiently. This utility allows for batch processing of images, resizing based on specified dimensions, and supports multiple input and output formats.\n\n\n## Motivation\nTo quickly and easily convert between formats and resolutions with a terminal program.  Also to mass convert and resize large amounts of files.\n\n## Features\n\n- Convert image files between different formats.\n- Resize images to specified dimensions.\n- Batch processing of multiple images.\n- Command-line interface for easy scripting and automation.\n\n## Requirements\n\n- C++ compiler with C++20 support.\n- OpenCV library installed.\n\n## Installation\n\nTo use this tool, you must have OpenCV installed on your system. After ensuring OpenCV is set up, follow these steps:\n\n1. Clone this repository or download the source code.\n2. Compile the source code using a C++ compiler, ensuring the OpenCV library is correctly linked. For example:\n\n```bash\nmake -f Makefile.ux\nsudo make install\n\n```\n\nor\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake -j6\nsudo make install\n\n```\n\n\n## Usage\n\nThe tool is used through the command line, with several options available for specifying input and output parameters.\n\n```\nUsage: image_convert [options]\n\nOptions:\n  -i, --input       file       Specify an input file list.\n  -f, --image       file input Specify a single image file for input.\n  -o, --output      file format Specify the output file format (e.g., jpg, png).\n  -s, --scale       resolution Specify the scale resolution in the format WidthxHeight (e.g., 800x600).\n  -q, --quality     level of compression for JPEG range 0-100.\n```\n\n### Examples\n\n- Convert a single image to JPG format:\n\n```bash\n./image_convert -f image.png -o jpg\n```\n\n- Resize and convert an image to PNG format:\n\n```bash\n./image_convert -f image.jpg -s 1024x768 -o png\n```\n\n- Process multiple images listed in a file:\n\n```bash\n./image_convert -i input_list.txt -o png\n```\n\nEach line in `input_list.txt` should contain the path to an individual image file.\n\n## How It Works\n\nThe tool reads the command-line arguments to determine the operation mode, input files, output format, and dimensions for resizing. It then processes each input image according to the specified options, performing conversion and/or resizing as needed, and saves the result to the specified output format.\n\nNote: Ensure that the dimensions for resizing are positive integers, and the output format is supported by OpenCV.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostjared%2Fimage_convert20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostjared%2Fimage_convert20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostjared%2Fimage_convert20/lists"}