Skip to content

Commit

Permalink
feat(protagonist): Add more protagonist portraits and add some more t…
Browse files Browse the repository at this point in the history
…ools

Signed-off-by: dark0dave <[email protected]>
  • Loading branch information
dark0dave committed Dec 7, 2023
1 parent e17f979 commit e1da162
Show file tree
Hide file tree
Showing 29 changed files with 31 additions and 0 deletions.
Binary file added ensrick_portraits/protagonist/CATPRI1L.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/CATPRI1M.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/CATPRI1S.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/FEMBAR1L.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/FEMBAR1M.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/FEMBAR1S.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/FEMCLE3L.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/FEMCLE3M.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/FEMCLE3S.BMP
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added ensrick_portraits/protagonist/FEMSOR3L.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/FEMSOR3M.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/FEMSOR3S.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALBAR1L.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALBAR1M.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALBAR1S.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALROG2L.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALROG2M.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALROG2S.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALWAR3L.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALWAR3M.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALWAR3S.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALWAR4L.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALWAR4M.BMP
Binary file not shown.
Binary file added ensrick_portraits/protagonist/MALWAR4S.BMP
Binary file not shown.
23 changes: 23 additions & 0 deletions process.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -euo pipefail

convert() {
mogrify -format bmp ${1}
}

sizer() {
ffmpeg -i ${1}L.BMP -vf scale=110:170 ${1}M.BMP
ffmpeg -i ${1}L.BMP -vf scale=38:60 ${1}S.BMP
}

main() {
convert $1
base_name=${1: 0:-4}
echo "${base_name}"
read -ep "Give images a name: " newname
mv "${base_name}".bmp "${newname}"L.BMP
sizer $newname >/dev/null
mv "${newname}"* ensrick_portraits/protagonist/.
}

main $1
8 changes: 8 additions & 0 deletions utils/validator.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail

validate() {
ffprobe -hide_banner $1
}

validate $1

0 comments on commit e1da162

Please sign in to comment.