vas.getContext('2d');
  const imageData = ctx.createImageData(img.width, img.height);
  imageData.data.set(img.data);
  canvas.width = img.width;
  canvas.height = img.height;
  ctx.putImageData(imageData, 0, 0);

  return canvas.toDataURL();
}


const qrean = new Qrean({
  // debug: true,
});

seltype.oninput = seldatatype.oninput = intext.oninput = async () => {
  divimg.innerHTML = "";
  const imgd = await qrean.encode(intext.value, {
    codeType: seltype.value,
    dataType: seldatatype.value
  }).then