alexzhirkevich/custom-qr-generator

GIF Support

Closed this issue · 8 comments

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

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

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

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

1st or 2nd? or even something else?

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

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
        }
    )
)

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

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

Please create new issues for different questions