Forgot to include metadata key in resized cache

This commit is contained in:
Kovid Goyal
2025-10-09 10:44:41 +05:30
parent a2255e979f
commit 9f2b22c4d6

View File

@@ -135,6 +135,7 @@ func (self *GraphicsHandler) cache_resized_image(cdir, cache_key string, img *im
return nil, nil, fmt.Errorf("failed to write resized frame metadata to cache: %w", err)
}
cached_data = make(map[string]string, len(frames)+1)
cached_data[IMAGE_METADATA_KEY] = path
for i, f := range frames {
path := filepath.Join(cdir, fmt.Sprintf("rsz-%s-%d", cache_key, i))
key := IMAGE_DATA_PREFIX + strconv.Itoa(i)