File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,17 @@ jobs:
58
58
59
59
- name : Compress Image
60
60
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 ../
65
72
66
73
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 \;
67
74
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 \;
You can’t perform that action at this time.
0 commit comments