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

@@ -187,6 +187,12 @@ type ProcessResult struct {
Width int
// Height is the output image height
Height int
// InputWidth is the original image width before processing
InputWidth int
// InputHeight is the original image height before processing
InputHeight int
// InputFormat is the detected input format (e.g., "jpeg", "png")
InputFormat string
}
// Storage handles persistent storage of cached content