mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 15:45:39 +01:00
Use protopiler for protocol buffers
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
@@ -65,7 +65,8 @@ export function computeBlurHashUrl(
|
||||
desiredWidth = 1,
|
||||
desiredHeight = 1
|
||||
): string {
|
||||
const invAspect = Math.abs(desiredHeight) / (Math.abs(desiredWidth) + 1e-23);
|
||||
const invAspect =
|
||||
(Math.abs(desiredHeight) + 1e-23) / (Math.abs(desiredWidth) + 1e-23);
|
||||
|
||||
// Calculate width and height that roughly satisfy the desired PIXEL_COUNT
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user