           URL.revokeObjectURL(url);
            } else if (format === 'jpg') {
                const img = new Image();
                img.onload = function () {
                    const scale = 1.8;
                    const canvas = document.createElement('canvas');
                    canvas.width = this.width * scale;
                    canvas.height = this.height * scale;
                    const ctx = canvas.getContext('2d');
                    ctx.fillStyle = '#ffffff';
                    ctx.