|
|
|
@@ -3744,8 +3744,13 @@ function renderToCanvas() { |
|
|
|
|
|
|
|
let xSize = img.getBoundingClientRect().width; |
|
|
|
let ySize = img.getBoundingClientRect().height; |
|
|
|
const oldFilter = ctx.filter |
|
|
|
const brightness = getComputedStyle(element).getPropertyValue("--brightness") |
|
|
|
ctx.filter = `brightness(${brightness})`; |
|
|
|
|
|
|
|
ctx.drawImage(img, x, y, xSize, ySize); |
|
|
|
|
|
|
|
ctx.filter = oldFilter |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|