mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
first implementation of itxt on image.ts
This commit is contained in:
parent
04d0b00b95
commit
22869ee58c
2 changed files with 63 additions and 19 deletions
|
@ -101,9 +101,10 @@ export const exportToBlob = async (
|
|||
mimeType?: string;
|
||||
quality?: number;
|
||||
exportPadding?: number;
|
||||
useITXt?: boolean;
|
||||
},
|
||||
): Promise<Blob> => {
|
||||
let { mimeType = MIME_TYPES.png, quality } = opts;
|
||||
let { mimeType = MIME_TYPES.png, quality, useITXt = true } = opts;
|
||||
|
||||
if (mimeType === MIME_TYPES.png && typeof quality === "number") {
|
||||
console.warn(`"quality" will be ignored for "${MIME_TYPES.png}" mimeType`);
|
||||
|
@ -150,6 +151,7 @@ export const exportToBlob = async (
|
|||
opts.files || {},
|
||||
"local",
|
||||
),
|
||||
useITXt,
|
||||
});
|
||||
}
|
||||
resolve(blob);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue