duguyihou / react-native-turbo-image

Performant image component for React Native
https://www.npmjs.com/package/react-native-turbo-image
MIT License
167 stars 9 forks source link

WebP and local asset support? #266

Closed jackholden closed 4 months ago

jackholden commented 4 months ago

Hi,

Will this have WebP support in the future?

Also is it possible to load local image assets using the require('..'), it doesn't seem to be supported at present.

Thanks

duguyihou commented 4 months ago

hey @jackholden

duguyihou commented 4 months ago

@jackholden seems it works with WebP. https://placehold.co/200x200/black/white/webp?text=turbo%20image

image
jackholden commented 4 months ago

@duguyihou Ah ok thanks. I didn't actually try as I saw a Nuke WebP plugin was needed. Also I just realised Nuke doesn't support Animated WebP which is a bit of a bummer.

Thanks for your quick reply. The ability to use the package with local files would be a brilliant enhancement!

duguyihou commented 4 months ago

@jackholden I create a ticket for local asset support #267 and will close this.

duguyihou commented 4 months ago

@jackholden I create a new release. You can give it a try with local asset.

https://github.com/user-attachments/assets/95b7a5f6-f334-4098-91ab-6e86847c1ba9

https://github.com/user-attachments/assets/f93c0c1f-46f5-44d6-81e6-206e23fbbbaa