Skip to content
KADO Masanori edited this page Apr 4, 2014 · 3 revisions

Re:VIEWで使用する画像は、任意の画像ディレクトリ(デフォルトは images )に保存してください。

  • <imgdir>/<id>.<ext> # 例: images/foo.png

画像が多すぎる場合は、章ごとにファイル名やディレクトリで分類することもできます。

  • <imgdir>/<chapid>/<id>.<ext> # images/ch01/foo.png
  • <imgdir>/<chapid>-<id>.<ext> # images/ch01-foo.png

特定のビルダーで画像フォーマットを変更したい場合(PDFはeps、HTMLはjpgなど)は、ビルダーのディレクトリを作成してください。

  • <imgdir>/<builder>/<id>.<ext> # images/html/foo.png

ビルダーと章の分類を組み合わせることも可能です。

  • <imgdir>/<builder>/<chapid>/<id>.<ext> # images/html/ch01/foo.png
  • <imgdir>/<builder>/<chapid>-<id>.<ext> # images/html/ch01-foo.png

以上をまとめると、画像の探索順序は以下のようになります。

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>