summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-07 14:26:07 +0500
committerilotterytea <iltsu@alright.party>2025-05-07 14:26:07 +0500
commitff7178fd42240cb1ad012c6afd11f40020963f53 (patch)
tree08bf8851fcf58ee014c959c9406e732396a75bdf /src
parentca88f91ebd726768fb1e89468c2d9f5ea21069b0 (diff)
upd: ignore aspect ratio + removed layer optimization
Diffstat (limited to 'src')
-rw-r--r--src/images.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/images.php b/src/images.php
index 88db094..a9caf88 100644
--- a/src/images.php
+++ b/src/images.php
@@ -24,7 +24,7 @@ function resize_image(string $src_path, string $dst_path, int $max_width, int $m
$result_code = null;
- exec(command: "magick convert $input_path -coalesce -resize {$new_width}x$new_height -layers optimize -loop 0 $output_path", result_code: $result_code);
+ exec(command: "magick convert $input_path -coalesce -resize {$new_width}x{$new_height}! -loop 0 $output_path", result_code: $result_code);
return $result_code;
}