From b2fc5a8c62b71d52d167e992c42fa6630cfca9b3 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 14 May 2026 12:22:24 -0400 Subject: cli: cover dimensions --- cover.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cover.go') diff --git a/cover.go b/cover.go index 415e22a..e5ad857 100644 --- a/cover.go +++ b/cover.go @@ -80,6 +80,10 @@ func (cd *CoverDimensions) UnmarshalJSON(data []byte) error { return nil } +func (cd CoverDimensions) String() string { + return fmt.Sprintf("%0.3f x %0.3f %s", cd.Width, cd.Height, cd.Unit) +} + // CoverValidation contains the validation status of a cover file. type CoverValidation struct { Id uint -- cgit v1.2.3