From 5e907640022953d396a14d4023633dfe8e14289e Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Wed, 29 Nov 2023 17:59:20 +1300 Subject: [PATCH] feat(cli): include file size if known --- packages/cli/src/commands/info.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/cli/src/commands/info.ts b/packages/cli/src/commands/info.ts index adc16730..024c83b0 100644 --- a/packages/cli/src/commands/info.ts +++ b/packages/cli/src/commands/info.ts @@ -54,6 +54,12 @@ export const commandInfo = command({ FetchLog.fetches.length === 1 ? '' : 's' })`, }, + tiff.source.metadata?.size + ? { + key: 'Size', + value: toByteSizeString(tiff.source.metadata.size), + } + : null, ]; const firstImage = tiff.images[0];