Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(histogram): 使用实际尺寸计算逻辑宽度和高度

Timothy Yinf67498193399
diff --git a/app/libs/histogram.ts b/app/libs/histogram.ts
index f0fad536..34786fca 100644
--- a/app/libs/histogram.ts
+++ b/app/libs/histogram.ts
@@ -130,9 +130,8 @@ export const drawHistogramToCanvas = (
if (maxCount === 0) return
- // 使用逻辑尺寸进行计算
- const logicalWidth = width / dpr
- const logicalHeight = height / dpr
+ const logicalWidth = width
+ const logicalHeight = height
const chartWidth = logicalWidth - options.padding * 2
const chartHeight = logicalHeight - options.padding * 2