feat: implement PosterLight component and enhance SiteLogo functionality for improved poster rendering

This commit is contained in:
hamed
2026-07-04 23:02:20 +03:30
parent 39c09bfcd5
commit 522caf6b1b
5 changed files with 290 additions and 32 deletions
+3 -2
View File
@@ -76,12 +76,13 @@ function List({ hiddenRef, data, qrReady }) {
try {
const fontEmbedCSS = await getVazirEmbedCss();
imgData = await toPng(element, {
const options = {
pixelRatio: 2,
backgroundColor: "#ffffff",
style: { opacity: "1" },
fontEmbedCSS,
});
};
imgData = await toPng(element, options);
pxWidth = element.offsetWidth * 2;
pxHeight = element.offsetHeight * 2;
} catch {