-
Notifications
You must be signed in to change notification settings - Fork 215
ImagePath
KADO Masanori edited this page Apr 4, 2014
·
3 revisions
Re:VIEWで使用する画像は、任意の画像ディレクトリ(デフォルトは images
)に保存してください。
<imgdir>/<id>.<ext>
画像が多すぎる場合は、章ごとにファイル名やディレクトリで分類することもできます。
-
<imgdir>/<chapid>/<id>.<ext>
# 章のディレクトリを作成 -
<imgdir>/<chapid>-<id>.<ext>
# ファイル名に章の名前を追加する
特定のビルダーで画像フォーマットを変更したい場合(PDFはeps、HTMLはjpgなど)は、ビルダーのディレクトリを作成してください。
<imgdir>/<builder>/<id>.<ext>
ビルダーと章の分類を組み合わせることも可能です。
<imgdir>/<builder>/<chapid>/<id>.<ext>
<imgdir>/<builder>/<chapid>-<id>.<ext>
以上をまとめると、画像の探索順序は以下のようになります。
1. <imgdir>/<builder>/<chapid>/<id>.<ext>
2. <imgdir>/<builder>/<chapid>-<id>.<ext>
3. <imgdir>/<builder>/<id>.<ext>
4. <imgdir>/<chapid>/<id>.<ext>
5. <imgdir>/<chapid>-<id>.<ext>
6. <imgdir>/<id>.<ext>