Closed takayama-lily closed 3 years ago
var probe = require('probe-image-size') probe("https://nodejs.org/dist/latest-v14.x/docs/api/stream.html").then(console.log)
output:
{ width: 24, height: 24, type: 'svg', mime: 'image/svg+xml', wUnits: 'px', hUnits: 'px', url: 'https://nodejs.org/dist/latest-v14.x/docs/api/stream.html' }
SVG inside HTML. Nice catch :).
I think, extra check for "no html/head/body patterns before " should solve problem.
Fixed, thanks for reporting.
Released 7.2.0
output: