ody
                                .appendChild(a);
                            a.click();
                            document
                                .body
                                .removeChild(a);
                            URL.revokeObjectURL(url);
                        } else if (format === 'jpg') {
                            const img = new Image();
                            img.onload = function () {
                                const scale = 1.8;
                            