Image is often missing on first render on Safari iOS · Issue #343 · tsayen/dom-to-image · GitHub

PHOTO EMBED

Wed Jun 29 2022 12:12:54 GMT+0000 (UTC)

Saved by @ali_naqvi #php #javascript

domtoimage.toJpeg(imageCard, {
    width: 1080,
    height: 1080,
    quality: 0.5,
  }).then(dataUrl => {
  domtoimage
    .toJpeg(imageCard, {
      width: 1080,
      height: 1080,
      quality: 0.5,
    })
    .then(dataUrl2 => {
      //Do your all stuff with dataUrl2...
    });
  });
content_copyCOPY

use this in eid adha card

https://github.com/tsayen/dom-to-image/issues/343