I renew all of the examples along with the new example of uploading image!
🐛 Improve Image Buffer Validation
It is quiet interesting that Buffer.isBuffer failed on validating the fetched image buffer from Internet (ArrayBuffer), so
by checking the instance of ArrayBuffer (config.image.buffer instanceof ArrayBuffer) is the solution
✨ Image alt on images response
It's quiet difficult to handle if the images url returned from Bard is invalid, having alt returned might help to inform user the invalid image.
✨ Renew Examples, and new Image Examples.
I renew all of the examples along with the new example of uploading image!
🐛 Improve Image Buffer Validation
It is quiet interesting that
Buffer.isBuffer
failed on validating the fetched image buffer from Internet (ArrayBuffer
), so by checking the instance of ArrayBuffer (config.image.buffer instanceof ArrayBuffer
) is the solution✨ Image alt on images response
It's quiet difficult to handle if the images url returned from Bard is invalid, having
alt
returned might help to inform user the invalid image.