{"id":19536002,"url":"https://github.com/miyako/4d-plugin-data-matrix","last_synced_at":"2026-06-18T07:31:45.897Z","repository":{"id":147172330,"uuid":"46367365","full_name":"miyako/4d-plugin-data-matrix","owner":"miyako","description":"Barcode generator based on libdmtx 0.7.5.","archived":false,"fork":false,"pushed_at":"2022-06-06T22:49:16.000Z","size":26981,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T04:19:08.759Z","etag":null,"topics":["4d-plugin","barcode-generator"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miyako.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-17T18:37:52.000Z","updated_at":"2024-08-27T05:05:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4a118fb-dd96-4cc1-bb4f-9363d5d738e0","html_url":"https://github.com/miyako/4d-plugin-data-matrix","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/miyako/4d-plugin-data-matrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-data-matrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-data-matrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-data-matrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-data-matrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miyako","download_url":"https://codeload.github.com/miyako/4d-plugin-data-matrix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-data-matrix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34481291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["4d-plugin","barcode-generator"],"created_at":"2024-11-11T02:20:36.376Z","updated_at":"2026-06-18T07:31:45.881Z","avatar_url":"https://github.com/miyako.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![version](https://img.shields.io/badge/version-17%2B-3E8B93)\n![platform](https://img.shields.io/static/v1?label=platform\u0026message=mac-intel%20|%20mac-arm%20|%20win-64\u0026color=blue)\n[![license](https://img.shields.io/github/license/miyako/4d-plugin-data-matrix)](LICENSE)\n![downloads](https://img.shields.io/github/downloads/miyako/4d-plugin-data-matrix/total)\n\n# 4d-plugin-data-matrix\nBarcode generator based on [libdmtx 0.7.5](https://github.com/dmtx/libdmtx).\n\n### Syntax\n\n[miyako.github.io](https://miyako.github.io/2019/08/17/4d-plugin-data-matrix.html)\n\n* Uses ``libpng`` or ``libjpeg`` to create native images. ``PNG`` offers the best in terms of size and quality, because the colorspace is ``PNG_COLOR_TYPE_PALETTE``. ``JPEG`` colorspace  is ``JCS_GRAYSCALE``, with quality ``100``, which is not as small as ``PNG``. ``SVG``, by contrast, is large but easier to post-process in 4D.\n\n## Examples\n\n```4d\n$moduleSize:=2\n$margin:=2\n$DPI:=96\n$data:=\"\"  //out param (svg source code)\n\n$value:=\"18000000011522042528120000355250541000002277743896\"\n$image:=DMTX ($value;DMTX Format PNG;DMTX Scheme ASCII;$moduleSize;DMTX Symbol 16x48;$margin;$DPI;$data)\n$image:=$image/$image/$image/$image\n$text:=DMTX Read image ($image;$texts)\n```\n\n```4d\n$moduleSize:=2\n$margin:=2\n$DPI:=96\n$data:=\"\"\n\n$value:=\"18000000011522042528120000355250541000002277743896\"\n\n$image:=DMTX ($value;DMTX Format JPG;DMTX Scheme ASCII;$moduleSize;DMTX Symbol 16x48;$margin;$DPI;$data)\n$jpg_size:=Picture size($image)  //4,701 (not as small because it is grayscale)\n$jpg_base64_size:=Length($data)  //6,355\nWRITE PICTURE FILE(System folder(Desktop)+\"sample_dmtx.jpg\";$image;\".jpg\")\n\n$image:=DMTX ($value;DMTX Format PNG;DMTX Scheme ASCII;$moduleSize;DMTX Symbol 16x48;$margin;$DPI;$data)\n$png_size:=Picture size($image)  //314 (very small because we use palette)\n$png_base64_length:=Length($data)  //425\nWRITE PICTURE FILE(System folder(Desktop)+\"sample_dmtx.png\";$image;\".png\")\n\n$image:=DMTX ($value;DMTX Format SVG;DMTX Scheme ASCII;$moduleSize;DMTX Symbol 16x48;$margin;$DPI;$data)\n$svg_size:=Picture size($image)  //260,594 (very large because it is text) \n$svg_xml_length:=Length($data)  //260,594\nWRITE PICTURE FILE(System folder(Desktop)+\"sample_dmtx.svg\";$image;\".svg\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-data-matrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiyako%2F4d-plugin-data-matrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-data-matrix/lists"}