Skip to content

Commit

Permalink
feat(image): enable image optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-elimu committed Nov 12, 2024
1 parent 9891b13 commit c3d122b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ai/elimu/model/content/multimedia/Image.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit c3d122b

Please sign in to comment.