1

I am using merge-images library to merge images, but it shows below error

Couldn't load image

The mergeImg method:

    mergeImg() {
      mergeImages([
        "@/assets/body.png",
        "@/assets/eyes.png",
        "@/assets/logo.png",
      ]).then((b64) => {
        console.log(b64);
        document.querySelector("img").src = b64;
      });
    },

Codesandbox:
https://codesandbox.io/s/bold-hill-hop84?file=/src/App.vue

CCCC
  • 5,665
  • 4
  • 41
  • 88
  • That errormessage is generated [here](https://github.com/lukechilds/merge-images/blob/master/src/index.js#L29). It seems your image cant be loaded properly. Maybe the entered paths arent correct (or merge-images cant resolve the "@"). – Fabian S. Nov 03 '21 at 06:08

0 Answers0