{"id":16590444,"url":"https://github.com/rrjanbiah/prep-product-image","last_synced_at":"2026-03-10T15:01:54.453Z","repository":{"id":195226063,"uuid":"144881269","full_name":"rrjanbiah/prep-product-image","owner":"rrjanbiah","description":"Prepare or preprocess product images for Amazon or Google Shopping; that is remove logo and non-white / grey background","archived":false,"fork":false,"pushed_at":"2018-08-16T16:08:12.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T12:52:05.796Z","etag":null,"topics":["amazon","google-shopping","image-manipulation","image-processing","image-recognition","imagemagick","product-catalog"],"latest_commit_sha":null,"homepage":null,"language":null,"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/rrjanbiah.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}},"created_at":"2018-08-15T17:10:51.000Z","updated_at":"2020-04-21T14:15:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"0bf3be9b-087b-4963-95d9-75f185cd5be4","html_url":"https://github.com/rrjanbiah/prep-product-image","commit_stats":null,"previous_names":["rrjanbiah/prep-product-image"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rrjanbiah/prep-product-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrjanbiah%2Fprep-product-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrjanbiah%2Fprep-product-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrjanbiah%2Fprep-product-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrjanbiah%2Fprep-product-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rrjanbiah","download_url":"https://codeload.github.com/rrjanbiah/prep-product-image/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrjanbiah%2Fprep-product-image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30338573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T14:50:13.961Z","status":"ssl_error","status_checked_at":"2026-03-10T14:49:32.490Z","response_time":106,"last_error":"SSL_read: 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":["amazon","google-shopping","image-manipulation","image-processing","image-recognition","imagemagick","product-catalog"],"created_at":"2024-10-11T23:13:02.826Z","updated_at":"2026-03-10T15:01:54.435Z","avatar_url":"https://github.com/rrjanbiah.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# prep-product-image\n\nPrepare or preprocess product images for Amazon or Google Shopping; that is remove logo and non-white / gray background\n\n## Getting Started\n\n### Prerequisites\n\n1. PHP\n2. ImageMagick (convert command/tool)\n\n### Usage\n\n```\nphp prep-product-image.php -i \u003csource image\u003e -o \u003cdestination image\u003e\n```\n\n#### Switches\n\n* `-v` or `--version` or `-h` for version and usage instruction\n* `--verbose` or `--debug` for verbose output\n\n## Examples\n\nTODO\n\n## How it works\n\nThis is a PHP wrapper script that executes convert command in each steps for:\n\n1. Replacing non-white background with white background\n2. Generating mask image to identify different objects in the image\n3. From the mask image, identify logo portion\n4. Fill that logo portion with white (or, erase with white color)\n5. Perform smart crop with ImageMagick's `-trim`\n\n## Todos/Roadmap\n\n* [ ] Check in ImageMagick forum with experts\n* [ ] Add gray shadow removal\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrjanbiah%2Fprep-product-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frrjanbiah%2Fprep-product-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrjanbiah%2Fprep-product-image/lists"}