alexzhirkevich / qrose Goto Github PK
View Code? Open in Web Editor NEWStyled QR & Barcode generation library for Compose Multiplatform and Jetpack Compose
License: MIT License
Styled QR & Barcode generation library for Compose Multiplatform and Jetpack Compose
License: MIT License
Hello, I was on the 1.0.0-beta3
version and I wanted to upgrade to the 1.0.0
version. But I got the following error.
It may have come from me, if I put back the 1.0.0-beta3
version. No problem
Duplicate class io.github.alexzhirkevich.qrose.CachedPainter found in modules qrose-core-release-runtime (io.github.alexzhirkevich:qrose-core-android:1.0.0) and qrose-release-runtime (io.github.alexzhirkevich:qrose-android:1.0.0)
Duplicate class io.github.alexzhirkevich.qrose.CachedPainter$block$1 found in modules qrose-core-release-runtime (io.github.alexzhirkevich:qrose-core-android:1.0.0) and qrose-release-runtime (io.github.alexzhirkevich:qrose-android:1.0.0)
Duplicate class io.github.alexzhirkevich.qrose.ConvertersKt found in modules qrose-core-release-runtime (io.github.alexzhirkevich:qrose-core-android:1.0.0) and qrose-release-runtime (io.github.alexzhirkevich:qrose-android:1.0.0)
Duplicate class io.github.alexzhirkevich.qrose.DrawCache found in modules qrose-core-release-runtime (io.github.alexzhirkevich:qrose-core-android:1.0.0) and qrose-release-runtime (io.github.alexzhirkevich:qrose-android:1.0.0)
Duplicate class io.github.alexzhirkevich.qrose.ToByteArrayKt found in modules qrose-core-release-runtime (io.github.alexzhirkevich:qrose-core-android:1.0.0) and qrose-release-runtime (io.github.alexzhirkevich:qrose-android:1.0.0)
Originally posted by idrisalshikh June 13, 2024
I've tried to change the background color without success, and I believe this is very important. By default, the QR code color is black, and the background color is determined by the surface where the QR image is displayed. If our design uses a black background, the generated image will be entirely black, making the QR code invisible.
In our application, we can resolve this by changing the background of our container that displays the image. However, the real issue arises when we need to share or save the image as a JPEG. In JPEG format, there is no transparency, so the generated image will have a black background. Since the default QR code color is black, we end up with an all-black image again.
When saving the image in PNG format, I encountered a problem when trying to share the image on WhatsApp; it still appears as a black image. Even if I change the QR code colors to:
colors {
dark = QrBrush.solid(Color.Blue)
frame = QrBrush.solid(Color.Blue)
light = QrBrush.solid(Color.Red)
ball = QrBrush.solid(Color.Blue)
}
The image still shows a white background (which represents my application's background color). When I share this image, it looks different because the background changes.
As a result, it would be beneficial if we could control the background color of the QR image directly and add an outer border to ensure consistency across different platforms and formats.
Hi bro.
How export generated QR to png ?
I tried to clone and build webJsApp to see library in action since I'm exploring it to use it.
I encountered a couple for issues
`bash
qrose % ./gradlew example:webJsApp:jsBrowserDevelopmentRun
Task :example:webJsApp:jsDevelopmentExecutableCompileSync FAILED
FAILURE: Build failed with an exception.
Gradle detected a problem with the following location: '/Users/mohammedhamid/Documents/Projects/KMP/qrose/example/webJsApp/build/processedResources/js/main'.
Reason: Task ':example:webJsApp:jsDevelopmentExecutableCompileSync' uses this output of task ':example:webJsApp:copyJsResourcesWorkaround' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
Please refer to https://docs.gradle.org/8.0/userguide/validation_problems.html#implicit_dependency for more details about this problem.
`
it doesn't compile on jdk 17+, respectively, i can't use it on new versions of compose.
build log says:
Cannot inline bytecode built with JVM target 17 into bytecode that is being built with JVM target 1.8.
Please add logo background option
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.