From c3d122be6f03cabb55d82c46af305a5e492fa461 Mon Sep 17 00:00:00 2001 From: jo-elimu <1451036+jo-elimu@users.noreply.github.com> Date: Tue, 12 Nov 2024 17:46:49 +0700 Subject: [PATCH] feat(image): enable image optimization #1945 --- src/main/java/ai/elimu/model/content/multimedia/Image.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ai/elimu/model/content/multimedia/Image.java b/src/main/java/ai/elimu/model/content/multimedia/Image.java index 97b5810d1..63df886f6 100644 --- a/src/main/java/ai/elimu/model/content/multimedia/Image.java +++ b/src/main/java/ai/elimu/model/content/multimedia/Image.java @@ -38,7 +38,7 @@ public class Image extends Multimedia { public String getUrl() { if (cid != null) { - return "https://black-historic-wren-832.mypinata.cloud/ipfs/" + cid; + return "https://black-historic-wren-832.mypinata.cloud/ipfs/" + cid + "?img-width=640"; } else { return "/image/" + getId() + "_r" + getRevisionNumber() + "." + imageFormat.toString().toLowerCase(); }