currently it assumes all images are png or that the browser displays it anyway even when providing the wrong mime type:
data:image/png;base64,${item.image!}
It would be more clear/correct to put the mimetype and rest of the data url also into the item.image property.
That way you can use jpg, png and later even svg in uriencoding instead of base64.
currently it assumes all images are png or that the browser displays it anyway even when providing the wrong mime type:
data:image/png;base64,${item.image!}
It would be more clear/correct to put the mimetype and rest of the data url also into the
item.image
property.That way you can use jpg, png and later even svg in uriencoding instead of base64.