{"id":20573534,"url":"https://github.com/lightweight-component/aj-qrcode","last_synced_at":"2026-04-15T11:33:01.077Z","repository":{"id":245204367,"uuid":"814412282","full_name":"lightweight-component/aj-qrcode","owner":"lightweight-component","description":"A Lightweight QR Code","archived":false,"fork":false,"pushed_at":"2024-06-25T04:06:35.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T21:25:06.449Z","etag":null,"topics":["qrcode","qrcode-generator"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightweight-component.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":"2024-06-13T01:02:55.000Z","updated_at":"2024-06-25T04:06:38.000Z","dependencies_parsed_at":"2024-06-25T04:48:50.729Z","dependency_job_id":null,"html_url":"https://github.com/lightweight-component/aj-qrcode","commit_stats":null,"previous_names":["lightweight-component/aj-qrcode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightweight-component%2Faj-qrcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightweight-component%2Faj-qrcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightweight-component%2Faj-qrcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightweight-component%2Faj-qrcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightweight-component","download_url":"https://codeload.github.com/lightweight-component/aj-qrcode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242189621,"owners_count":20086602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["qrcode","qrcode-generator"],"created_at":"2024-11-16T05:28:01.742Z","updated_at":"2026-04-15T11:33:01.037Z","avatar_url":"https://github.com/lightweight-component.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://img.shields.io/maven-central/v/com.ajaxjs/aj-qrcode?label=Latest%20Release)](https://central.sonatype.com/artifact/com.ajaxjs/aj-qrcode)\n[![Javadoc](https://img.shields.io/badge/javadoc-1.0-brightgreen.svg?)](https://dev.ajaxjs.com/docs/javadoc/aj-qrcode/)\n[![License](https://img.shields.io/badge/license-Apache--2.0-green.svg?longCache=true\u0026style=flat)](http://www.apache.org/licenses/LICENSE-2.0.txt)\n[![Email](https://img.shields.io/badge/Contact--me-Email-orange.svg)](mailto:frank@ajaxjs.com)\n[![QQ群](https://framework.ajaxjs.com/static/qq.svg)](https://shang.qq.com/wpa/qunwpa?idkey=3877893a4ed3a5f0be01e809e7ac120e346102bd550deb6692239bb42de38e22)\n\n# QR Code Generator\nForks from https://github.com/nayuki/QR-Code-generator. Puts normal version and fast version in one project.\n\nTutorial: https://zhangxin.blog.csdn.net/article/details/139821806.\n\nJava Documents: https://dev.ajaxjs.com/docs/javadoc/aj-qrcode/.\n\n## Install\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.ajaxjs\u003c/groupId\u003e\n    \u003cartifactId\u003eaj-qrcode\u003c/artifactId\u003e\n    \u003cversion\u003e1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n\n```java\nString text = \"Hello, world!\";          // User-supplied Unicode text\nEcc errCorLvl = Ecc.LOW;  // Error correction level\nQrCode qr = QrCode.encodeText(text, errCorLvl);  // Make the QR Code symbol\n\nBufferedImage img = Utils.toImage(qr, 10, 4);          // Convert to bitmap image\nFile imgFile = new File(\"hello-world-QR.png\");   // File path for output\nImageIO.write(img, \"png\", imgFile);              // Write image to file\n\nString svg = Utils.toSvgString(qr, 4, \"#FFFFFF\", \"#000000\");  // Convert to SVG XML code\nFile svgFile = new File(\"c:\\\\temp\\\\hello-world-QR.svg\");          // File path for output\nFiles.write(svgFile.toPath(), svg.getBytes(StandardCharsets.UTF_8)); // Write image to file\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightweight-component%2Faj-qrcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightweight-component%2Faj-qrcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightweight-component%2Faj-qrcode/lists"}