Skip to content

Commit

Permalink
HEIC match
Browse files Browse the repository at this point in the history
  • Loading branch information
iach526526 committed Aug 30, 2024
1 parent a629763 commit bd36ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/list-img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/{} \;
Expand Down

0 comments on commit bd36ca0

Please sign in to comment.