Skip to content

Commit 5b96797

Browse files
committed
fix
1 parent e828464 commit 5b96797

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,17 @@ jobs:
5858

5959
- name: Compress Image
6060
run: |
61-
sudo apt-get install -y libfuse2
62-
wget https://download.imagemagick.org/archive/binaries/magick
63-
chmod +x magick
64-
sudo mv magick /usr/local/bin/
61+
wget https://download.imagemagick.org/ImageMagick/download/ImageMagick.tar.gz
62+
tar xvzf ImageMagick.tar.gz
63+
cd ImageMagick-7.*
64+
./configure
65+
make
66+
sudo make install
67+
sudo ldconfig /usr/local/lib
68+
69+
magick --version
70+
71+
cd ../
6572
6673
find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec magick {} -pointsize 48 -fill "#FFFFFF" -font ./static/ArchitectsDaughter-Regular.ttf -gravity south -annotate +0+10 "@liudon\nhttps://liudon.com" -resize 1080x\> -quality 75 -define webp:image-hint=photo {}_1080x.webp \;
6774
find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec magick {} -verbose -pointsize 48 -fill "#FFFFFF" -font ./static/ArchitectsDaughter-Regular.ttf -gravity south -annotate +0+10 "@liudon\nhttps://liudon.com" -resize 1080x\> {}_1080x.avif \;

0 commit comments

Comments
 (0)