Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Liudon committed Oct 19, 2024
1 parent 1603e44 commit bef8fc2
Showing 1 changed file with 10 additions and 32 deletions.
42 changes: 10 additions & 32 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,43 +58,21 @@ jobs:

- name: Compress Image
run: |
# sudo apt-get update
# sudo apt-get install -y build-essential libx11-dev libxext-dev zlib1g-dev \
# libpng-dev libjpeg-dev libfreetype6-dev libxml2-dev liblcms2-dev \
# libopenexr-dev libtiff-dev libraw-dev libheif-dev libde265-dev \
# libfftw3-dev libglib2.0-dev libwebp-dev
# wget https://download.imagemagick.org/ImageMagick/download/ImageMagick.tar.gz
# tar xvzf ImageMagick.tar.gz
# cd ImageMagick-7.*
# ./configure
# make
# sudo make install
# sudo ldconfig /usr/local/lib
# cd ../
sudo apt update
sudo apt install fuse
sudo apt-get update
sudo apt-get install -y build-essential libx11-dev libxext-dev zlib1g-dev \
libpng-dev libjpeg-dev libfreetype6-dev libxml2-dev liblcms2-dev \
libopenexr-dev libtiff-dev libraw-dev libheif-dev libde265-dev \
libfftw3-dev libglib2.0-dev libwebp-dev libavif-dev libaom-dev
libfftw3-dev libglib2.0-dev libwebp-dev
wget 'https://imagemagick.org/archive/binaries/magick'
chmod +x magick
sudo mv magick /usr/local/bin/
sudo ldconfig
wget https://download.imagemagick.org/ImageMagick/download/ImageMagick.tar.gz
tar xvzf ImageMagick.tar.gz
cd ImageMagick-7.*
./configure
make
sudo make install
sudo ldconfig /usr/local/lib
export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
magick --version
magick -list format | grep AVIF
ldconfig -p | grep heif
magick -list configure
cd ../
find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec magick {} -pointsize 48 -fill "#909090" -font ./static/ArchitectsDaughter-Regular.ttf -gravity south -annotate +0+20 "@liudon\nhttps://liudon.com" -resize 1080x\> {} \;
find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec magick {} -quality 75 -define webp:image-hint=photo {}_1080x.webp \;
Expand Down

0 comments on commit bef8fc2

Please sign in to comment.