mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-22 00:17:05 +08:00
Update pnginfo.js
This commit is contained in:
parent
046f4ed09f
commit
1504570e8e
@ -79,10 +79,11 @@ function parseExifData(exifData) {
|
|||||||
let value;
|
let value;
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
// ASCII string
|
// ASCII string
|
||||||
value = String.fromCharCode(...exifData.slice(valueOffset, valueOffset + numValues - 1));
|
value = String.fromCharCode(...exifData.slice(valueOffset, valueOffset + numValues - 1)).replace("[NaN]", "[0]");
|
||||||
}
|
}
|
||||||
|
|
||||||
result[tag] = value;
|
// result[tag] = value; // with type 2, tag is a an integer = 37510
|
||||||
|
Object.assign(result, JSON.parse(value)); // return parsed json immediately, it's already clean: "{prompt:{},workflow:{}}"
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user