-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c60885
commit 94bd8c6
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||