We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d03f45d commit ef3281fCopy full SHA for ef3281f
1 file changed
packages/lib/server/resizeBase64Image.ts
@@ -26,10 +26,6 @@ export async function resizeBase64Image(
26
maxSize = 96 * 4,
27
} = opts ?? {};
28
const image = await jimp.read(buffer);
29
- if (image.getHeight() !== image.getWidth()) {
30
- // this could be handled later
31
- throw new Error("Image is not a square");
32
- }
33
const currentSize = Math.max(image.getWidth(), image.getHeight());
34
if (currentSize > maxSize) {
35
image.resize(jimp.AUTO, maxSize);
0 commit comments