pnginfo reader/parser for a1111/webui
import { PNGInfo } from '@stable-canvas/sd-webui-a1111-pnginfo';
const $image = /** <img /> ; base64_str ; Blob ; File ... */ ;
const pnginfo = new PNGInfo($image);
const params = await pnginfo.getParams();
console.log(params);
- more formats support
- support utf8 prompt (exifr problem)