https://github.com/rrjanbiah/prep-product-image
Prepare or preprocess product images for Amazon or Google Shopping; that is remove logo and non-white / grey background
https://github.com/rrjanbiah/prep-product-image
amazon google-shopping image-manipulation image-processing image-recognition imagemagick product-catalog
Last synced: 3 months ago
JSON representation
Prepare or preprocess product images for Amazon or Google Shopping; that is remove logo and non-white / grey background
- Host: GitHub
- URL: https://github.com/rrjanbiah/prep-product-image
- Owner: rrjanbiah
- Created: 2018-08-15T17:10:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-16T16:08:12.000Z (almost 8 years ago)
- Last Synced: 2025-03-06T12:52:05.796Z (over 1 year ago)
- Topics: amazon, google-shopping, image-manipulation, image-processing, image-recognition, imagemagick, product-catalog
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prep-product-image
Prepare or preprocess product images for Amazon or Google Shopping; that is remove logo and non-white / gray background
## Getting Started
### Prerequisites
1. PHP
2. ImageMagick (convert command/tool)
### Usage
```
php prep-product-image.php -i -o
```
#### Switches
* `-v` or `--version` or `-h` for version and usage instruction
* `--verbose` or `--debug` for verbose output
## Examples
TODO
## How it works
This is a PHP wrapper script that executes convert command in each steps for:
1. Replacing non-white background with white background
2. Generating mask image to identify different objects in the image
3. From the mask image, identify logo portion
4. Fill that logo portion with white (or, erase with white color)
5. Perform smart crop with ImageMagick's `-trim`
## Todos/Roadmap
* [ ] Check in ImageMagick forum with experts
* [ ] Add gray shadow removal