<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ajay singh</title>
    <description>The latest articles on DEV Community by ajay singh (@ajay_singh_7056fe5c3625fb).</description>
    <link>https://dev.to/ajay_singh_7056fe5c3625fb</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4284028%2Fdb285947-9172-4eb9-a6a3-a1c63292f3a0.jpg</url>
      <title>DEV Community: ajay singh</title>
      <link>https://dev.to/ajay_singh_7056fe5c3625fb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ajay_singh_7056fe5c3625fb"/>
    <language>en</language>
    <item>
      <title>Meesho doesn't publish its image specs anywhere, so I built a checker</title>
      <dc:creator>ajay singh</dc:creator>
      <pubDate>Sat, 05 Dec 2026 06:00:46 +0000</pubDate>
      <link>https://dev.to/ajay_singh_7056fe5c3625fb/meesho-doesnt-publish-its-image-specs-anywhere-so-i-built-a-checker-4ho1</link>
      <guid>https://dev.to/ajay_singh_7056fe5c3625fb/meesho-doesnt-publish-its-image-specs-anywhere-so-i-built-a-checker-4ho1</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;That last one is the sneaky one. I measured a few photos that everyone agreed looked white:&lt;/p&gt;

&lt;p&gt;RGB(243, 243, 243)&lt;br&gt;
RGB(245, 245, 245)&lt;br&gt;
RGB(250, 244, 244)&lt;/p&gt;

&lt;p&gt;Your eye can't tell those from white. Amazon's main-image check can, and it rejects them.&lt;/p&gt;

&lt;p&gt;So I wrote a small Python tool. Point it at a folder, and it tells you which photo breaks which marketplace's rule.&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
$ python validate.py ./photos --marketplace amazon-in,meesho&lt;/p&gt;

&lt;p&gt;[FAIL] jhumka-01.jpg  1500x1125  JPEG  0.4MB  bg RGB(255, 255, 255)&lt;br&gt;
         Amazon India: WARN: Product fills about 50% of the frame; 85% is wanted.&lt;br&gt;
         Meesho: FAIL: Aspect ratio is 1.33:1; expected 1:1, 3:4&lt;br&gt;
                 (community figure, not published by the marketplace)&lt;/p&gt;

&lt;p&gt;[FAIL] kurti-02.jpg  800x800  JPEG  0.2MB  bg RGB(246, 246, 248)&lt;br&gt;
         Amazon India: FAIL: Background looks like RGB(246, 246, 248);&lt;br&gt;
                 pure white is wanted (within 5 of RGB(255, 255, 255)).&lt;/p&gt;

&lt;p&gt;3 image(s) checked, 2 with at least one failure.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;The part that surprised me&lt;/p&gt;

&lt;p&gt;I went looking for the official specs so the thresholds would be right.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Amazon's and Flipkart's own seller documentation sits behind a login, so I had to work from integration docs that cite them.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;How I handled it&lt;/p&gt;

&lt;p&gt;Every rule lives in a rules.json, with its source and a confidence level:&lt;/p&gt;

&lt;p&gt;json&lt;br&gt;
"min_longest_side": {&lt;br&gt;
  "value": 1000,&lt;br&gt;
  "confidence": "community",&lt;br&gt;
  "note": "Guides quote anything from 400 to 1000 px as the floor.",&lt;br&gt;
  "source": "Seller guides (Meesho publishes no figure)"&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;And every message the tool prints about an unverified rule says so, in the line itself:&lt;/p&gt;

&lt;p&gt;Meesho: FAIL: Aspect ratio is 1.33:1; expected 1:1, 3:4&lt;br&gt;
        (community figure, not published by the marketplace)&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;What it deliberately doesn't do&lt;br&gt;
Text, watermarks and logos. This needs OCR and gets it wrong often enough to be worse than useless.&lt;br&gt;
Whether the photo matches the product, or whether the colour is true.&lt;br&gt;
Flipkart apparel, which wants light grey with a soft shadow rather than white — the tool can't tell apparel from anything else.&lt;/p&gt;

&lt;p&gt;A pass means the pixels are in order. It doesn't promise approval.&lt;/p&gt;

&lt;p&gt;Measuring the background&lt;/p&gt;

&lt;p&gt;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:&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
band = max(2, min(w, h) // 50)&lt;br&gt;
strips = [&lt;br&gt;
    rgb.crop((0, 0, w, band)),            # top&lt;br&gt;
    rgb.crop((0, h - band, w, h)),        # bottom&lt;br&gt;
    rgb.crop((0, 0, band, h)),            # left&lt;br&gt;
    rgb.crop((w - band, 0, w, h)),        # right&lt;br&gt;
]&lt;/p&gt;

&lt;p&gt;Then it reports the average RGB, so there's nothing to argue about — you see the number.&lt;/p&gt;

&lt;p&gt;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".&lt;/p&gt;

&lt;p&gt;MIT licensed, runs locally, no signup.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ajaysin009-glitch/marketplace-image-validator" rel="noopener noreferrer"&gt;https://github.com/ajaysin009-glitch/marketplace-image-validator&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you sell on any of these and the numbers don't match your panel, I'd really like to hear it.&lt;/p&gt;

</description>
      <category>ecommerce</category>
      <category>showdev</category>
      <category>python</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
