I work with Indian online sellers on product photos. The same thing kept happening to them: upload a catalog, wait two days, get half of it rejected. Wrong size, wrong aspect ratio, or a background that looks white on screen and isn't.
That last one is the sneaky one. I measured a few photos that everyone agreed looked white:
RGB(243, 243, 243)
RGB(245, 245, 245)
RGB(250, 244, 244)
Your eye can't tell those from white. Amazon's main-image check can, and it rejects them.
So I wrote a small Python tool. Point it at a folder, and it tells you which photo breaks which marketplace's rule.
bash
$ python validate.py ./photos --marketplace amazon-in,meesho
[FAIL] jhumka-01.jpg 1500x1125 JPEG 0.4MB bg RGB(255, 255, 255)
Amazon India: WARN: Product fills about 50% of the frame; 85% is wanted.
Meesho: FAIL: Aspect ratio is 1.33:1; expected 1:1, 3:4
(community figure, not published by the marketplace)
[FAIL] kurti-02.jpg 800x800 JPEG 0.2MB bg RGB(246, 246, 248)
Amazon India: FAIL: Background looks like RGB(246, 246, 248);
pure white is wanted (within 5 of RGB(255, 255, 255)).
3 image(s) checked, 2 with at least one failure.
It checks dimensions, aspect ratio, file size, format, CMYK, animated GIFs, the background colour, and how much of the frame the product fills. Pillow is the only dependency.
The part that surprised me
I went looking for the official specs so the thresholds would be right.
Meesho doesn't publish its image limits at all. Not on the supplier site, not in any help page I could find. Every number you'll read online comes from seller blogs, and they contradict each other — I found a single page that said 400px was the minimum in its table and 1000px in its summary.
Amazon's and Flipkart's own seller documentation sits behind a login, so I had to work from integration docs that cite them.
That left me with a choice: pick numbers and present them as rules, like every other blog post does, or be honest about where each one came from.
How I handled it
Every rule lives in a rules.json, with its source and a confidence level:
json
"min_longest_side": {
"value": 1000,
"confidence": "community",
"note": "Guides quote anything from 400 to 1000 px as the floor.",
"source": "Seller guides (Meesho publishes no figure)"
}
And every message the tool prints about an unverified rule says so, in the line itself:
Meesho: FAIL: Aspect ratio is 1.33:1; expected 1:1, 3:4
(community figure, not published by the marketplace)
Nothing official-sounding that isn't official. If a number doesn't match what someone's actual seller panel says, that's a bug, and the source field is there so the correction can be checked.
What it deliberately doesn't do
Text, watermarks and logos. This needs OCR and gets it wrong often enough to be worse than useless.
Whether the photo matches the product, or whether the colour is true.
Flipkart apparel, which wants light grey with a soft shadow rather than white — the tool can't tell apparel from anything else.
A pass means the pixels are in order. It doesn't promise approval.
Measuring the background
The one bit worth describing. It samples a thin band around all four edges, on the assumption that a correct catalog photo has the product in the middle, never touching the frame:
python
band = max(2, min(w, h) // 50)
strips = [
rgb.crop((0, 0, w, band)), # top
rgb.crop((0, h - band, w, h)), # bottom
rgb.crop((0, 0, band, h)), # left
rgb.crop((w - band, 0, w, h)), # right
]
Then it reports the average RGB, so there's nothing to argue about — you see the number.
For marketplaces that want pure white it measures distance from 255. For ones that allow light grey it checks two separate things: that it's bright enough, and that the channels are close together. Otherwise a light pink passes as "light grey".
MIT licensed, runs locally, no signup.
https://github.com/ajaysin009-glitch/marketplace-image-validator
If you sell on any of these and the numbers don't match your panel, I'd really like to hear it.

