Skip to content

Commit

Permalink
HEIC to JPG
Browse files Browse the repository at this point in the history
  • Loading branch information
iach526526 committed Aug 29, 2024
1 parent 78a3d48 commit 957a571
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/list-img.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# @format

name: List Images in JSON
on:
push:
Expand All @@ -18,9 +16,14 @@ jobs:
with:
node-version: "20.10.0"
- name: 安裝套件
run: sudo apt-get install -y webp
run: |
sudo apt-get install -y webp
sudo apt-get install -y libheif-examples
- name: Install ImageMagick
run: sudo apt-get install -y imagemagick
- name: 轉檔成 JPG (處理 HEIC)
run: |
find img -type f -name '*.heic' -exec sh -c 'heif-convert "$1" "${1%.*}.jpg"' _ {} \;
- name: 轉檔成 WebP
run: |
find img -type d -exec mkdir -p converted/{} \;
Expand Down

0 comments on commit 957a571

Please sign in to comment.