aboutsummaryrefslogtreecommitdiffstats
path: root/language/zh_CN/help/photos_add_ftp.html
blob: 1702be85171e1f17a6e370f30db1d576c054cf10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<fieldset>
  <legend>快速开始</legend>

<ol>
  <li>在你的电脑里创建一个文件夹。</li>  

  <li>复制一些图片到此文件夹,调整它们的大小以适合网上浏览。 <em>注意</em>: 文件名和文件夹必须以字母、数字、 "-"、 "_" 或者 "." 组成。没有空格,没有特别的符号。</li>

  <li>使用FTP客户端,复制你的文件夹到 Piwigo 的 "galleries" 文件夹里。</li>

  <li>登录你的相册,进入 <span class="pwgScreen">后台管理 &raquo; 图片 &raquo; 缩略图</span> 以创建你的缩略图。</li>

  <li>进入 <span class="pwgScreen">后台管理</span> 然后点击“快速同步”的大按钮。</li>
</ol>

恭喜!你已成功地为你的图库创建了第一个相册。

</fieldset>
<fieldset>
  <legend>文件夹与文件结构</legend>
<ul>

  <li>

    <p>相册文件夹均放在 Piwigo 的 "galleries" 文件夹里。以下的文件夹树里有一个很小的相册(但使用了很多功能):</p>

    <pre>
galleries
|-- wedding
|   |-- celebration
|   |   |-- arrival
|   |   |   |-- paul-alone.jpg
|   |   |   +-- sarah-alone.jpg
|   |   +-- departure
|   |       +-- paul-and-sarah.jpg
|   +-- party
|       |-- dancers001.jpg
|       |-- dancers002.jpg
|       +-- dancers003.jpg
+-- honeymoon
|   |-- hotel.png
|   |-- video-from-plane.avi
|   +-- pwg_representative
|       +-- video-from-plane.jpg
+-- photoshoot
    |-- img0001.jpg
    |-- img0002.jpg
    +-- pwg_format
        |-- img0001.cr2
        |-- img0001.cmyk.jpg
        |-- img0001.zip
        |-- img0002.cr2
        +-- img0002.cmyk.jpg
</pre>

  </li>
  
  <li>每个在 "galleries" 下面的文件夹都是一个相册。没有级别限制,即可以添加无限级的子相册。</li>

  <li>基本上,一个文件代表一个元素。如果文件的扩展名存在于 <code>file_ext</code> 参数配置里,其将可作为 Piwigo 的一个元素(参见 <span class="filename">include/config_default.inc.php</span> 文件)。如果文件的扩展名存在于 <code>picture_ext</code> 参数配置里,其将作为一个图片。</li>

  <li>图片元素必须要有一张对应的缩略图 (参见以下缩略图的相关说明)</li>

  <li>图片元素可以有一个高品质的文件与其关联。如以上 wedding.jpg 的例子。高品质图片不需要前缀。</li>

  <li>非图片元素 (如视频,声频,文本文件,一切你想到的...) 均以文件扩展名的默认图标显示。或者,你可以用一张缩略图来代表这个文件 (参见 video.avi 的例子)。</li>

  <li>Multiple formats: a photo can be available in several formats. In this example, we have 3 additional formats for img0001.jpg. You can activate this feature with <code>$conf['enable_formats'] = true;</code> in your local configuration and define a list of formats, like <code>$conf['format_ext'] = array('cmyk.jpg', 'cr2', 'zip');</code></li>

  <li><em>注意</em>: 文件名和文件夹必须以字母、数字、 "-"、 "_" 或者 "." 组成。没有空格,没有特别的符号。</li>

  <li>一旦文件、缩略图都放到其正确的位置后,进入 : <span class="pwgScreen">后台管理 &raquo; 工具 &raquo;
  同步</span></li>

</ul>

</fieldset>