diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-07 14:26:07 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-07 14:26:07 +0500 |
| commit | ff7178fd42240cb1ad012c6afd11f40020963f53 (patch) | |
| tree | 08bf8851fcf58ee014c959c9406e732396a75bdf | |
| parent | ca88f91ebd726768fb1e89468c2d9f5ea21069b0 (diff) | |
upd: ignore aspect ratio + removed layer optimization
| -rw-r--r-- | src/images.php | 2 |
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; } |
