79701080

Date: 2025-07-14 15:20:13
Score: 2.5
Natty:
Report link

I got the same problem as @Amandeep Singh in comment with the actual solution, but i found a workaround.

I'm converting the image to dataUrl immediately after loading :

fabric.Image.fromURL(url).then((img) => {
    img.src = img.toDataURL();
    canvas.add(img);
    canvas.renderAll(); // i need this to refresh the canvas in fabricjs 6 in my case
});

And by converting the image at loading, no need to extend toObject of fabric.Image

Reasons:
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (1): I got the same problem
  • Has code block (-0.5):
  • User mentioned (1): @Amandeep
  • Low reputation (0.5):
Posted by: novaXire