Good morning, I searched around but I didn't find a working solution to copy an image(png, jpg) from a URL link to the clipboard. I tried:
const response = await fetch(image1);
const blob = await response.blob();
try {
navigator.clipboard.write([
new ClipboardItem({
'image/jpg': blob
})
]);
} catch (error) {
console.error(error);
}