webxdc / store

XDC store, migrated to codeberg
https://codeberg.org/webxdc/store
5 stars 0 forks source link

change item image to be the full data uri instead of only the data part #194

Closed Simon-Laux closed 1 year ago

Simon-Laux commented 1 year ago

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.