mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 17:27:09 +00:00
Adressing smaller review comments
This commit is contained in:
@@ -96,7 +96,7 @@ export async function canvasEncode(data: ImageData, type: string, quality?: numb
|
||||
return blob;
|
||||
}
|
||||
|
||||
export function canDecode(data: string): Promise<boolean> {
|
||||
export function canDecodeImage(data: string): Promise<boolean> {
|
||||
return new Promise((resolve) => {
|
||||
const img = document.createElement('img');
|
||||
img.src = data;
|
||||
|
||||
Reference in New Issue
Block a user