Prevent generating large newsletter screenshots on retina screens
This setting forces the tool for generating newsletter screenshots to use same resolution on retina/non retina screens. Screenshots taken on retina screens have a huge size because of the resolution. [MAILPOET-2686]
This commit is contained in:
committed by
Veljko V
parent
6971161535
commit
fbbde3ec95
@@ -11,6 +11,7 @@ import html2canvas from 'html2canvas';
|
||||
export const fromDom = async (element) => {
|
||||
const canvas = await html2canvas(element, {
|
||||
logging: false,
|
||||
scale: 1, // Use a constant scale to prevent generating large images on Retina displays
|
||||
});
|
||||
return canvas.toDataURL('image/jpeg');
|
||||
};
|
||||
|
Reference in New Issue
Block a user