{"id":16623325,"url":"https://github.com/tegraxd/lxiv","last_synced_at":"2025-10-29T22:31:39.443Z","repository":{"id":57723427,"uuid":"338988638","full_name":"TEGRAXD/LXIV","owner":"TEGRAXD","description":"LXIV is Android Module (Library) for managing Base64 String to Bitmap vice versa using Encoder and Decoder Builder","archived":false,"fork":false,"pushed_at":"2022-12-08T18:49:30.000Z","size":300,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T05:31:34.259Z","etag":null,"topics":["android","bitmap","communityexchange","decoder","encoder","kotlin","kotlin-android","learn","library"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/TEGRAXD.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}},"created_at":"2021-02-15T06:39:52.000Z","updated_at":"2023-11-27T01:04:41.000Z","dependencies_parsed_at":"2023-01-25T11:00:28.544Z","dependency_job_id":null,"html_url":"https://github.com/TEGRAXD/LXIV","commit_stats":null,"previous_names":["tegraxd/lxiv"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TEGRAXD%2FLXIV","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TEGRAXD%2FLXIV/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TEGRAXD%2FLXIV/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TEGRAXD%2FLXIV/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TEGRAXD","download_url":"https://codeload.github.com/TEGRAXD/LXIV/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238909399,"owners_count":19550839,"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":["android","bitmap","communityexchange","decoder","encoder","kotlin","kotlin-android","learn","library"],"created_at":"2024-10-12T03:23:18.069Z","updated_at":"2025-10-29T22:31:34.041Z","avatar_url":"https://github.com/TEGRAXD.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"LXIV\n====\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.suganda8/lxiv/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.suganda8/lxiv)\n\nLXIV is Base64 encoder and decoder to convert Base64 String to Bitmap, or Bitmap to Base64. Using builder pattern to make sure your development easy and take less time.\n\n\u003c!--![](static/lxvi_logo.png)--\u003e\n\nDownload\n--------\nDownload the source code from GitHub's [releases page][1] or using Gradle, Maven, Jitpack (soon).\n\nUsing Gradle (Project):\n\n```gradle\nrepositories {\n    // Add Maven Central repository\n    mavenCentral()\n}\n```\n\nthen, add LXIV in Gradle (Module):\n\n```gradle\ndependencies {\n    // Using Gradle Groovy DSL\n    implementation 'com.github.suganda8:lxiv:1.0.1'\n\n    // Using Gradle Kotlin DSL\n    // implementation(\"com.github.suganda8:lxiv:1.0.1\")\n}\n```\n\nUsing Maven:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.suganda8\u003c/groupId\u003e\n  \u003cartifactId\u003elxiv\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.1\u003c/version\u003e\n  \u003ctype\u003eaar\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\nFor info on using the bleeding edge, see the Snapshots (soon) docs page.\n\nUsage\n-----\n\nBuild encoder from uri to base64 string\n\n```kotlin\n// Get uri from intent's data\nval uri = data.data\n\n// Encode Uri (You should do this in background)\nval base64EncodedString = LXIV.createEncoder().fromUri(requireContext()) {\n    // Input is depends, fromUri or fromBitmap.\n    it.input = uri\n    it.quality = 75\n    it.compressFormat = Bitmap.CompressFormat.JPEG\n    // You could leave or not setting up the flag\n    it.flag = Base64.DEFAULT\n}\n```\n\nBuild decoder from base64 string to bitmap\n\n```kotlin\n// Decode Base64 String\nval bitmap = LXIV.createDecoder().asBitmap {\n    // Set base64 string\n    it.base64String = binding.tietDecoderBase64StringFrDecoder.text.toString()\n    // You could leave or not setting up the flag\n    it.flag = Base64.DEFAULT\n}\n\n// Set bitmap into ImageView\nbinding.imgvImageLoadedFrDecoder.setImageBitmap(bitmap)\n```\n\nStatus\n------\nVersion 1.0.1 is now released.\n\nDeveloper\n------\nTegar Bangun Suganda\n\n[@canaryv8][3] (Twitter)\\\n[@suganda8][4] (Github)\n\nLicense\n-------\n    Copyright 2021 Tegar Bangun Suganda, ASTARIA.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n[1]: https://github.com/suganda8/LXIV/releases\n[2]: https://github.com/suganda8/LXIV/blob/main/LICENSE\n[3]: https://twitter.com/canaryv8\n[4]: https://github.com/suganda8\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftegraxd%2Flxiv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftegraxd%2Flxiv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftegraxd%2Flxiv/lists"}