mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 01:37:26 +00:00
Add support for PNG decoding (encoding still buggy)
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
export function instantiateEmscriptenWasm(factory, path) {
|
||||
export function pathify(path) {
|
||||
if (path.startsWith("file://")) {
|
||||
path = path.slice("file://".length);
|
||||
}
|
||||
return path;
|
||||
}
|
||||
export function instantiateEmscriptenWasm(factory, path) {
|
||||
return factory({
|
||||
locateFile() {
|
||||
return path;
|
||||
return pathify(path);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user