Fixed issue with new bucket scaler
This commit is contained in:
1 parent
30886b8f92
commit
87bac27513
1 file changed
+1
-1
+1
-1
@@ -22,7 +22,7 @@ def get_bucket_for_image_size(
|
|||||||
|
|
||||||
target_pixels = min(total_pixels, max_pixels)
|
target_pixels = min(total_pixels, max_pixels)
|
||||||
|
|
||||||
scaler = target_pixels / total_pixels
|
scaler = (target_pixels / total_pixels) ** 0.5
|
||||||
w_raw = (width * scaler) / divisibility
|
w_raw = (width * scaler) / divisibility
|
||||||
h_raw = (height * scaler) / divisibility
|
h_raw = (height * scaler) / divisibility
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user