Stable Diffusionで生成された画像の埋め込みメタデータを表示します
< Stable Diffusion image metadata viewerについてのフィードバック
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();
Thank you for feedback. Your code correctly works completely. I reconsidered file extention's condition is needless. It is better way for User Include.
返信を投稿するにはログインしてください。
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();