표시 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();