Mastodon 管理者向けデフォルト画像の場所、サイズなどの情報まとめ
Mastodon (マストドン) のインスタンスを立てている管理者に役立つデフォルト画像の場所、サイズなどの情報をまとめてご紹介します。
前提 – Mastodon バージョン
この記事は Mastodon v1.3.1 を前提に書いています。
画像ファイルが設置されているディレクトリ
画像ファイルは app/assets/images 以下に設置されています。
画像ディレクトリ app/assets/images 内のファイル一覧
$ ls -lh app/assets/images total 1648 -rw-r--r-- 1 codenote staff 258K 4 27 09:31 background-photo.jpeg -rw-r--r-- 1 codenote staff 1.3K 4 27 09:31 boost_sprite.png -rw-r--r-- 1 codenote staff 24K 4 27 09:31 elephant-friend.png -rw-r--r-- 1 codenote staff 59K 4 27 09:31 fluffy-elephant-friend.png -rw-r--r-- 1 codenote staff 7.6K 4 27 09:31 logo.png -rw-r--r-- 1 codenote staff 1.5K 4 27 09:31 logo.svg -rw-r--r-- 1 codenote staff 34K 4 27 09:31 mastodon-getting-started.png -rw-r--r-- 1 codenote staff 19K 4 27 09:31 mastodon-not-found.png -rw-r--r-- 1 codenote staff 131K 4 27 09:31 mastodon.jpg -rw-r--r-- 1 codenote staff 25K 4 27 09:31 mastodon_small.jpg -rw-r--r-- 1 codenote staff 244K 4 27 09:31 screenshot.png -rw-r--r-- 1 codenote staff 174B 4 27 09:31 void.png |
これらの画像ファイルを差し替える、もしくは、画像ファイルをこのディレクトリに設置して対応するファイル名を使ってるソースコードを修正すれば Mastodon のサイトの画像を変更することができます。