From: Vincent Vanwaelscappel Date: Tue, 20 Dec 2022 08:38:42 +0000 (+0100) Subject: wip #5661 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0bdc90da8504c07771264ebea341bda49969bb13;p=cubist_util.git wip #5661 @0.5 --- diff --git a/src/CommandLine/Imagemagick/Ico.php b/src/CommandLine/Imagemagick/Ico.php new file mode 100644 index 0000000..9c9786c --- /dev/null +++ b/src/CommandLine/Imagemagick/Ico.php @@ -0,0 +1,27 @@ +getSrc()); + $sourceSize = min($sourceSize[0], $sourceSize[1]); + $sizes = []; + foreach ($allSizes as $s) { + if ($s > $sourceSize) { + continue; + } + $sizes[] = $s; + } + + $this->setManualArg('-define icon:auto-resize=' . implode(',', $sizes)); + } +} \ No newline at end of file