mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 22:35:23 +00:00
refac
This commit is contained in:
parent
86a8eb1023
commit
ceb4948a28
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@
|
||||||
sliceHeight
|
sliceHeight
|
||||||
);
|
);
|
||||||
|
|
||||||
const imgData = pageCanvas.toDataURL('image/jpeg', 0.8);
|
const imgData = pageCanvas.toDataURL('image/jpeg', 0.7);
|
||||||
|
|
||||||
// Calculate image height in PDF units keeping aspect ratio
|
// Calculate image height in PDF units keeping aspect ratio
|
||||||
const imgHeightMM = (sliceHeight * pageWidthMM) / canvas.width;
|
const imgHeightMM = (sliceHeight * pageWidthMM) / canvas.width;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue