diff --git a/public/index.html b/public/index.html index e4e32ef..b4eb674 100644 --- a/public/index.html +++ b/public/index.html @@ -6,10 +6,12 @@ - + + +
@@ -22,7 +24,7 @@ -
+
@@ -31,7 +33,7 @@ - +
yui不思議な力を持つアイの話不思議な力を持つアイの冒険
diff --git a/public/json/manga.json b/public/json/manga.json index fa02e32..0075c67 100644 --- a/public/json/manga.json +++ b/public/json/manga.json @@ -4,13 +4,15 @@ "end": 21, "updated_at": "2021-07-11T00:00:00+09:00", "comment": "特別編", - "dir": "0" + "illust": 100, + "dir": 0 }, { "id": 1, "end": 6, "updated_at": "2024-05-01T00:00:00+09:00", "comment": "1話", - "dir": "1" + "illust": 89, + "dir": 1 } ] diff --git a/public/wa/0/0.png b/public/wa/0/0.png index 71e79a5..fde3104 100644 Binary files a/public/wa/0/0.png and b/public/wa/0/0.png differ diff --git a/public/wa/1/0.png b/public/wa/1/0.png index ee663cf..5f0a605 100644 Binary files a/public/wa/1/0.png and b/public/wa/1/0.png differ diff --git a/public/wa/ai.png b/public/wa/ai.png new file mode 100644 index 0000000..9416934 Binary files /dev/null and b/public/wa/ai.png differ diff --git a/public/wa/bg.png b/public/wa/bg.png new file mode 100644 index 0000000..9e4818d Binary files /dev/null and b/public/wa/bg.png differ diff --git a/public/wa/bg_og.png b/public/wa/bg_og.png new file mode 100644 index 0000000..6af49f9 Binary files /dev/null and b/public/wa/bg_og.png differ diff --git a/public/wa/com.png b/public/wa/com.png new file mode 100644 index 0000000..ed377b2 Binary files /dev/null and b/public/wa/com.png differ diff --git a/public/wa/yui_100.png b/public/wa/yui_100.png new file mode 100644 index 0000000..047e505 Binary files /dev/null and b/public/wa/yui_100.png differ diff --git a/public/wa/yui_89.png b/public/wa/yui_89.png new file mode 100644 index 0000000..9a333bf Binary files /dev/null and b/public/wa/yui_89.png differ diff --git a/scpt/title.zsh b/scpt/title.zsh new file mode 100755 index 0000000..110bc0e --- /dev/null +++ b/scpt/title.zsh @@ -0,0 +1,47 @@ +#!/bin/zsh +d=${0:a:h} +dd=${0:a:h:h} + +url=syui.ai/img + +case $OSTYPE in + darwin*) + path_nvm_sh="/opt/homebrew/opt/nvm/nvm.sh";; + linux*) + path_nvm_sh="";; +esac + +json=$dd/public/json/manga.json +bg=$dd/public/wa/bg.png +bgg=$dd/public/wa/bg_og.png + +convert -resize 3240x4320! $bg $bgg + +n=`cat $json|jq "length"` +n=`expr $n - 1` + +cd $dir +export NVM_DIR="$HOME/.nvm" +[ -s "$path_nvm_sh" ] && \. "$path_nvm_sh" +nvm use 17 +nvm i squoosh-cli + +for ((i=0;i<=$n;i++)) +do + illust=`cat $json|jq -r ".[$i].illust"` + id=`cat $json|jq -r ".[$i].id"` + s=$dd/public/wa/yui_${illust} + o=$dd/public/wa/$id/0_test.png + og=${s}_og.png + f=$dd/public/wa/$id/0_font.png + ff=$dd/public/wa/$id/0.png + if [ ! -f $s ];then + curl -sL https://syui.ai/img/yui_${illust}.png -o ${s}.png + fi + convert ${s}.png -gravity south -geometry 135%x135% -extent 3240x4320 $og + + magick composite $bgg -gravity north -geometry +0+0 $og $o + convert -font "Meiryo" -pointsize 150 -fill black -gravity east -annotate +650-140 "$id" $o $f + mv $f $ff + rm $og $o +done diff --git a/src/App.vue b/src/App.vue index 817ce21..de033b6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,62 +1,10 @@