Clarify comment
This commit is contained in:
@@ -239,7 +239,8 @@ export async function compressImage(
|
|||||||
minQualityPercentage = 0
|
minQualityPercentage = 0
|
||||||
maxQualityPercentage = 101
|
maxQualityPercentage = 101
|
||||||
attempts++
|
attempts++
|
||||||
// 4000px → 3200px → 2560px → 2048px → ~1638px
|
// max.width → 0.8× → 0.64× → 0.512× → ~0.41×
|
||||||
|
// e.g. 4000px → 3200px → 2560px → 2048px → ~1638px
|
||||||
currentDimension = Math.floor(currentDimension * 0.8)
|
currentDimension = Math.floor(currentDimension * 0.8)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user