你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/459579-stable-diffusion-image-metadata-viewer/discussions/168071,源站連結 點此以跳轉

Stable Diffusion image metadata viewer

显示 Stable Diffusion 生成的图像的元数据

< 脚本 Stable Diffusion image metadata viewer 的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发布于:2023-02-10
编辑于:2023-02-10

Doesn't work with urls like this
example.com/image.png?a.a=b.b
example.com/image.png#cccc

line 25:
const ext = img.src.match(/[^.]+$/)[0].toLowerCase();
->
const ext = img.src.split(/[#?]/)[0].split('.').pop().trim().toLowerCase();

§
发布于:2023-02-11

Thank you for feedback. Your code correctly works completely. I reconsidered file extention's condition is needless. It is better way for User Include.

发布留言

登录以发布留言。