Coder Social home page Coder Social logo

stringimage's Introduction

ImageID: Transform User IDs into Unique Profile Images

IMG_20240221_130054

ImageID is an innovative Android library designed to simplify profile image generation for developers. By leveraging algorithms, ImageID transforms user-specific ID strings into visually distinct profile images, eliminating the need for traditional image storage methods. Prioritize user privacy, enhance app performance, and offer a personalized experience with ImageID.

Features

  • Efficient Image Generation: ImageID eliminates the need for storing individual profile pictures, significantly reducing storage requirements and enhancing app performance.

  • Privacy-Focused: Personal images are not uploaded or stored, ensuring user data remains secure.

  • Customization Options: Developers can tailor ImageID to fit their app's aesthetic preferences and branding guidelines, offering a personalized experience for users.

  • Scalable Solution: ImageID is optimized for scalability, making it suitable for apps with varying user bases and usage patterns.

How to Use

Integration

  1. Add the JitPack repository to your project's build.gradle file:
dependencyResolutionManagement {
	repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
	repositories {
		mavenCentral()
		maven { url 'https://jitpack.io' }
	}
}
  1. Add the dependency to your project's build.gradle file:
dependencies {
	implementation 'com.github.Olaoluwa99:StringImage:1.0.0'
}
  1. Initialize ImageID in your app:
val imageId = ImageId()

Creating ImageID

//Create ImageID
imageId.createUserId(
        mainText = "Hello",
        startColorRed = 200, startColorGreen = 124, startColorBlue = 004,
        endColorRed = 024, endColorGreen = 123, endColorBlue = 094,
        userId = 123456789,
        shuffleSeed = 123456L
)
//Input 'Rgb' values for colors to generate ID string.

Generating Profile Image

//Generate bitmap from ID
val bitmap = imageId.getImageFromId(imageId)
val profileImage = ImageID.generateProfileImage(userID)
imageView.setImageBitmap(profileImage)

Retrieving ID values

//Retrieve values from Id
val result: Task<Text> = imageId.retrieveIdByImage(userImage: Bitmap)

val fullText = ""
val result = idImage.retrieveIdByImage(profileImageBitmap)

result.addOnSuccessListener {
	it.textBlocks[0].text	//Main Text
	it.textBlocks[1].text	//UserId
	it.textBlocks[2].text	//User color code - (rgbStart - rgbEnd)
	it.textBlocks[3].text	//User shuffleSeed

	//Full text on Image
	for (block in it.textBlocks) {
		val blockText = block.text
		testResult = "$fullText$blockText".replace(" ", "")
	}
}

Use Cases

  • Social Media Platforms: Enhance user privacy while maintaining a visually appealing interface with unique profile images on social networking apps.

  • Dating Apps: Provide users with distinctive avatars without compromising their privacy or requiring photo uploads.

  • E-commerce Platforms: Streamline user registration and enhance privacy by generating unique avatars for e-commerce customers.

Contributing

Contributions are welcome! Please see our Contributing Guidelines for more details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

stringimage's People

Contributors

olaoluwa99 avatar david-io avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.