Browse Source

Add a comment about dprScale for future historians

DarthSim 3 weeks ago
parent
commit
08150dcc16
1 changed files with 3 additions and 0 deletions
  1. 3 0
      processing/prepare.go

+ 3 - 0
processing/prepare.go

@@ -110,6 +110,9 @@ func calcScale(width, height int, po *options.ProcessingOptions, imgtype imagety
 				dprScale /= minShrink
 				dprScale /= minShrink
 			}
 			}
 		}
 		}
+
+		// The minimum of wshrink and hshrink is the maximum dprScale value
+		// that can be used without enlarging the image.
 		dprScale = math.Min(dprScale, math.Min(wshrink, hshrink))
 		dprScale = math.Min(dprScale, math.Min(wshrink, hshrink))
 	}
 	}