Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Liudon committed Oct 19, 2024
1 parent 29eecfd commit 7f18329
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,36 +58,39 @@ 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://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
# wget 'https://imagemagick.org/archive/binaries/magick'
# chmod +x magick
# sudo mv magick /usr/local/bin/
# cd ../
sudo apt update
sudo apt install fuse
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
wget 'https://imagemagick.org/archive/binaries/magick'
chmod +x magick
sudo mv magick /usr/local/bin/
sudo ldconfig /usr/local/lib
magick --version
magick -list format
magick -list format | grep AVIF
ldconfig -p | grep heif
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 7f18329

Please sign in to comment.