aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/utils/image.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/utils/image.ts')
-rw-r--r--web_src/js/utils/image.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/utils/image.ts b/web_src/js/utils/image.ts
index 558a63f22e..5cd5052b40 100644
--- a/web_src/js/utils/image.ts
+++ b/web_src/js/utils/image.ts
@@ -29,8 +29,8 @@ type ImageInfo = {
dppx?: number,
}
-// decode a image and try to obtain width and dppx. It will never throw but instead
-// return default values.
+/** decode a image and try to obtain width and dppx. It will never throw but instead
+ * return default values. */
export async function imageInfo(blob: Blob): Promise<ImageInfo> {
let width = 0, dppx = 1; // dppx: 1 dot per pixel for non-HiDPI screens