{
  "id": 19450193,
  "title": "How Tracing Contours Cut My rMQR SVG Path by 67%",
  "url": "https://urgent.news/2026/11/11/how-tracing-contours-cut-my-rmqr-svg-path-by-67",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-11T05:22:05.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/datalog/how-tracing-contours-cut-my-rmqr-svg-path-by-67-3e1a"
  },
  "original_language": "en",
  "account": "Tracing the contours of an SVG path representing an rMQR code reduced the length of the path string by 67% compared to using individual squares to represent each dark module. The method involved creating one single path with rectangular subpaths for each dark module, then joining neighboring rectangles to create larger shapes. After comparing the lengths of the resulting strings, the contour tracing approach proved to be the most efficient in terms of reducing the overall path length.",
  "summary": "Whenever I needed vector artwork to survive resizing, rotation, or a trip to the print shop, I had a familiar routine. Open Illustrator, select the pieces, click Unite in Pathfinder, and get on with the job. Then I caught myself doing that to an rMQR Code generated by my own JavaScript library. The generator had already worked out exactly which modules were dark. It exported an SVG. And there I…",
  "key_points": [
    "Tracing contours reduced rMQR SVG path length by 67%",
    "Contour tracing used single path with rectangular subpaths",
    "Method proved more efficient than individual square representation"
  ],
  "editors_take": "Consolidating individual modules into continuous shapes optimizes SVG data efficiency by significantly reducing the character count required to represent complex rMQR code geometries.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}