Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GIF Support #8

Closed
hardikbhalodi opened this issue Dec 14, 2022 · 8 comments
Closed

GIF Support #8

hardikbhalodi opened this issue Dec 14, 2022 · 8 comments
Labels
enhancement New feature or request

Comments

@hardikbhalodi
Copy link

hardikbhalodi commented Dec 14, 2022

is it possible to add GIF image as foreground of QR Code?

@alexzhirkevich
Copy link
Owner

Gif animation is not supported. You can set 1 frame from gif as a foreground.

@hardikbhalodi
Copy link
Author

hardikbhalodi commented Dec 14, 2022

is it possible to implement with use of gif drawable lib here https://github.com/koral--/android-gif-drawable ?

@alexzhirkevich
Copy link
Owner

alexzhirkevich commented Dec 14, 2022

It is technically possible, but what exactly means "foreground of the QR code"?

1st or 2nd? or even something else?

@alexzhirkevich alexzhirkevich added the enhancement New feature or request label Dec 14, 2022
@hardikbhalodi
Copy link
Author

hardikbhalodi commented Dec 15, 2022

Yes the 1st is correct. here is one more example of same, how to achieve that?
gif

@alexzhirkevich
Copy link
Owner

alexzhirkevich commented Dec 15, 2022

Tbh, your example looks more like 2nd variant.

You can achieve it like this:

LayerDrawable(
    arrayOf(
        QrCodeDrawable(context, data,options),
        GifDrawable(resources, R.drawable.gif).apply {
            alpha = 125
        }
    )
)

@hardikbhalodi
Copy link
Author

hardikbhalodi commented Dec 19, 2022

Okay thanks but not sure how i can export the GIF qr code now because its layer drawable?
Any chance to implement GIFDrawableSource?

Repository owner deleted a comment from hardikbhalodi Jan 2, 2023
Repository owner deleted a comment from hardikbhalodi Jan 2, 2023
Repository owner deleted a comment from hardikbhalodi Jan 2, 2023
@hardikbhalodi
Copy link
Author

hardikbhalodi commented Jan 5, 2023

How to customise eyes like this, i tried and able to customise with same shape but all the sides are same! how to differentiate left top, right top and left bottom eye side?
unitag_qrcode_standard

@alexzhirkevich
Copy link
Owner

Please create new issues for different questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants