diff --git a/db/model/Gdoc/htmlToEnriched.ts b/db/model/Gdoc/htmlToEnriched.ts
index 722bdf84990..c22f301c178 100644
--- a/db/model/Gdoc/htmlToEnriched.ts
+++ b/db/model/Gdoc/htmlToEnriched.ts
@@ -987,9 +987,13 @@ function cheerioToArchieML(
{
type: "image",
// src is the entire path. we only want the filename
- filename: path.basename(
- image?.attribs["src"] ?? ""
- ),
+ filename: path
+ .basename(image?.attribs["src"] ?? "")
+ .replace(
+ // removing size suffixes e.g. some_file-1280x840.png -> some_file.png
+ /-\d+x\d+\.(png|jpg|jpeg|gif|svg)$/,
+ ".$1"
+ ),
alt: image?.attribs["alt"] ?? "",
parseErrors: [],
originalWidth: undefined,