Chrome extension that trims a shipping label PDF (a 4×6 label on a letter or A4 page) down to a print-ready 4×6 PDF. Built for Vinted, works on any site whose label is a single picture on the page. Everything runs on your computer.
Get Label Snip on the Chrome Web Store, then pin it: puzzle-piece icon in the toolbar → pin Label Snip.
chrome://extensions.extension folder.After changing any file, click the reload ↻ icon on the Label Snip card in chrome://extensions.
The first time you use it on a site other than Vinted, Label Snip asks “Allow Label Snip to read labels from site?”. Click Allow, then confirm Chrome’s own prompt. Chrome words that prompt as “Read and change your data on site”, which is its standard wording for any site access; Label Snip only downloads the PDF from the tab you clicked.
Chrome remembers the OK. To see or remove approved sites: chrome://extensions → Label Snip → Details → Site access.
If the site only shows the label when you’re signed in, that works too: Label Snip uses your existing login.
blob:) → “Label Snip can’t read this tab.”http:// → “Label Snip only reads secure (https) pages.”background.js: on icon click, opens crop.html with the clicked tab’s address.crop.js: asks for the site’s OK if needed, downloads the PDF (with your login cookies), calls labelcrop.js, shows the result in Chrome’s PDF viewer.labelcrop.js: finds the largest image on each page (the label), shrinks the page boxes to it, turns it upright if it’s sideways, and drops pages with no label. The label image isn’t re-rendered, so barcodes stay sharp.lib/pdf-lib.js: pdf-lib 1.17.1 (MIT), unminified so it’s easy to read.Vinted’s label host (svc-shipping-labels.s3.eu-central-1.amazonaws.com) is approved from install, so Vinted never shows the Allow step.
Label Snip has no server, no account and no analytics. See the privacy policy.
That’s a printer setting, not the PDF (Label Snip doesn’t change the label image). In Windows → Printers & scanners → your printer → Printing preferences, raise Density (or Darkness) and lower Speed; slower prints darker. If there’s a Dither / Threshold option, pick Threshold. On a Nelko PL70e-BT these are on the Parameters tab (density default 8 of 15, speed default 4).
MIT. Bundled pdf-lib is also MIT (extension/lib/pdf-lib.LICENSE.md).
node --test test/crop.test.js
To also check a real label: set LABEL_SAMPLE to a label PDF path (and optionally LABEL_OUT to save the cropped result).