nativescript-community / ui-image

Advanced and efficient image display plugin which uses Fresco (Android) and SDWebImage (iOS) to implement caching, placeholders, image effects, and much more.
Apache License 2.0
36 stars 9 forks source link

Support for Base64 on placeholderImageUri and failureImageUi #14

Closed asiedusamuel closed 4 years ago

asiedusamuel commented 4 years ago

Is there any way to set a base64 encoded image for placeholder and failure image uri. I am trying to set an image generated from user initial in base64 as placeholders and failure images.

farfromrefug commented 4 years ago

@asiedusamuel not right now. Will add it

farfromrefug commented 4 years ago

@asiedusamuel should work with 2.2.3 You need to use loadFromBase64 Now all props support ImageSource

asiedusamuel commented 4 years ago

Have upgraded to v2.2.3 but still not working. I have used LoadFromBase64 on placeholderImageUrl and failureImageUri but still cant get it to work. Base64 Images only works for src.

farfromrefug commented 4 years ago

@asiedusamuel just tried and it works here for both platforms. I created an example here: https://github.com/Akylas/nativescript-image/blob/master/demo/app/examples/base64-fragment.ts

Tell me if you still dont get it to work.

asiedusamuel commented 4 years ago

Thanks man. Looks like there are multiple examples there which will help