Skip to content

Commit

Permalink
Update resize_images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsully323 authored Sep 26, 2024
1 parent 4c60885 commit 94bd8c6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/resize_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
- name: resize
uses: sharadcodes/[email protected]
with:
image-folder: 'HTC/protocols/MTM/media' # This is a Required field & this folder has original images
new-resolution: '1300x2600' # This is Required field
output-folder: "HTC/protocols/MTM/media/new_images" # This is Required field & this folder will be used to store resized images

- name: Install ImageMagick
run: sudo apt-get install imagemagick
- name: resize jpeg images
run: mogrify -path "./HTC/protocols/MTM/media/resized_images/" -resize 1300x2600 "./HTC/protocols/MTM/media/*.jpeg"
- name: Commit
run: |
git add -A
git commit -m "adding resized photos"
git push

0 comments on commit 94bd8c6

Please sign in to comment.