Fix image resize function

This commit is contained in:
itsfinniii
2026-04-05 22:39:14 +02:00
parent 4ccbc9d9a8
commit 89bbbf5595

View File

@@ -6,7 +6,7 @@ export function getImageSize(width: number, height: number, targetMegapixels: nu
const originalPixels = width * height;
const targetPixels = targetMegapixels * 1000 * 1000;
if (originalPixels >= targetPixels) {
if (originalPixels <= targetPixels) {
return {
width,
height