From bd36ca046f094162fa38e565f574cade3f6e159c Mon Sep 17 00:00:00 2001 From: Each Chen Date: Fri, 30 Aug 2024 09:32:48 +0800 Subject: [PATCH] HEIC match --- .github/workflows/list-img.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/list-img.yml b/.github/workflows/list-img.yml index 1edf779..013e73c 100644 --- a/.github/workflows/list-img.yml +++ b/.github/workflows/list-img.yml @@ -20,10 +20,10 @@ jobs: sudo apt-get update sudo apt-get install -y webp libheif-examples imagemagick - name: 列出 HEIC 文件 - run: find img -type f -name '*.heic' + run: find img -type f -name '*.HEIC' - name: 轉檔成 JPG (處理 HEIC) run: | - find img -type f -name '*.heic' -exec sh -c 'echo "Converting $1"; heif-convert "$1" "${1%.*}.jpg"' _ {} \; + find img -type f -name '*.HEIC' -exec sh -c 'echo "Converting $1"; heif-convert "$1" "${1%.*}.jpg"' _ {} \; - name: 轉檔成 WebP run: | find img -type d -exec mkdir -p converted/{} \;