{"id":15655306,"url":"https://github.com/mariotaku/uniqr","last_synced_at":"2025-05-04T07:25:28.941Z","repository":{"id":144746221,"uuid":"87766188","full_name":"mariotaku/UniqR","owner":"mariotaku","description":"Yet another QR art library for Java","archived":false,"fork":false,"pushed_at":"2018-03-15T08:23:32.000Z","size":266,"stargazers_count":25,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-03T15:07:22.931Z","etag":null,"topics":["java","qrcode"],"latest_commit_sha":null,"homepage":"","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/mariotaku.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":"2017-04-10T04:23:26.000Z","updated_at":"2024-01-14T05:47:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"50f34020-c807-4795-a1a9-8b735432435a","html_url":"https://github.com/mariotaku/UniqR","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariotaku%2FUniqR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariotaku%2FUniqR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariotaku%2FUniqR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariotaku%2FUniqR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariotaku","download_url":"https://codeload.github.com/mariotaku/UniqR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252301665,"owners_count":21726073,"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":["java","qrcode"],"created_at":"2024-10-03T12:57:53.442Z","updated_at":"2025-05-04T07:25:28.922Z","avatar_url":"https://github.com/mariotaku.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UniqR - Get your UNIque QR code\n\nYet another QR art library for Java, combines image with QR code.\n\n## Features\n\n* This library is \u003csup\u003e\u003csub\u003esuper tiny\u003c/sub\u003e\u003c/sup\u003e. Less than 10KB for integration (see notes)\n* **0** runtime dependency (see notes)\n* Separated platform implementations for JavaSE and Android\n* Apache License, can be used in commercial projects\n\n## Notes\n\n* No QR encoder bundled for flexibility, you'll need to implement `QrData` classes with your favorite QR encoder\n* You'll need to crop and adjust input image by yourself (especially for JavaSE implementation).\n For example, an image with aspect ratio other than 1:1 may be stretched.\n\n## Example (in Kotlin)\n\n````kotlin\nclass QrCodeData(private val qrCode: QrCode) : QrData {\n\n    override fun getSize() = qrCode.size\n\n    override fun getVersion() = qrCode.version\n\n    override fun get(x: Int, y: Int) = qrCode.getModule(x, y) == 1\n}\n\nval background = ImageIO.read(Main::class.java.getResource(\"the_man_who_changed_china.png\"))\nval qrSegments = QrSegment.makeSegments(\"苟利国家生死以，岂因祸福避趋之\")\nval qrCode = QrCode.encodeSegments(qrSegments, QrCode.Ecc.HIGH, 5, 40, -1, true)\nval uniqR = UniqR(JavaSEPlatform(), background, QrCodeData(qrCode)).apply {\n    qrPatternColor = 0xFFB9001E\n}\n\n// Call uniqR.build() for result \n````\n\n## Output\n\n![+1s](resources/the_man_who_changed_china_qr.png)\n\n## Donation\n\n**Donation methods**\n\nPayPal \u0026 AliPay: `val email = \"mariotaku.lee@gmail.com\"`\n\nBitcoin: `1Ag37rPeVUKPHZa6RrsnbkCCz1Envx8xxZ`\n\nBuy me a ~~bread~~ [game](http://steamcommunity.com/id/mariotaku/wishlist) or anything you want :)\n\n---\n\nMade with ❤️ by \u003ca href=\"https://mariotaku.org/\"\u003e\u003cimg src=\"resources/nyan_sakamoto_icon.png\" height=\"20\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariotaku%2Funiqr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariotaku%2Funiqr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariotaku%2Funiqr/lists"}