From fe75e7067b3564185ed3ff1999ec44b9a2d3e6f6 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Tue, 29 Nov 2022 13:30:22 -0800 Subject: [PATCH] 2022-11-29 01:30:22PM --- lib/imgbundler/imgbundler.go | 6 +++++- lib/imgbundler/imgbundler_test.go | 29 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/lib/imgbundler/imgbundler.go b/lib/imgbundler/imgbundler.go index 43cfa5adf..0b1addc22 100644 --- a/lib/imgbundler/imgbundler.go +++ b/lib/imgbundler/imgbundler.go @@ -20,6 +20,9 @@ import ( "oss.terrastruct.com/d2/lib/xmain" ) +// 32 MB +var max_img_size int64 = 33_554_432 + var imageRe = regexp.MustCompile(`