Add detailed logging for image conversions on cache miss

Log includes:
- file path
- input/output format
- input/output size in bytes
- input/output dimensions
- size ratio (percentage)

Also adds InputWidth, InputHeight, InputFormat to ProcessResult
This commit is contained in:
2026-01-08 10:44:34 -08:00
parent 02de534cc2
commit b233871241
3 changed files with 25 additions and 0 deletions

View File

@@ -93,6 +93,9 @@ func (p *ImageProcessor) Process(
ContentType: ImageFormatToMIME(outputFormat),
Width: finalBounds.Dx(),
Height: finalBounds.Dy(),
InputWidth: origWidth,
InputHeight: origHeight,
InputFormat: format,
}, nil
}