CleanShot 2021-09-30 at 12 28 58

Install image-info

// Author: John Lindquist
// Twitter: @johnlindquist
// Description: Displays Image Info of Selected File
import "@johnlindquist/kit"
let sharp = await npm("sharp")
let metadata = await sharp(
await getSelectedFile()
).metadata()
await div(
md(`
~~~json
${JSON.stringify(metadata, null, "\t")}
~~~
`)
)