编辑“Gallery:模块:picasa

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第1行: 第1行:
= 全景(Panorama)模块 =
= Panorama Module =
为大尺寸(全景)可卷动的显示添加java小程序。
Adds a java applet for a scrollable display of wide (panorama) images.


== 用法 ==
== Usage ==
* 安装该模块并在站点管理中对其进行配置。
* Install the module and configure it in site admin.
* ''使用小程序来显示大尺寸图片''–此选项用以显示/隐藏"编辑相片(Edit Photo)" -> "相片(Photo)"中的"全景(Panorama)"选项。
* ''Use applet to display wide images'' - Option to show / hide the "Panorama" option in "Edit Photo" -> "Photo"
* ''为大尺寸图片在项目动作中添加"查看全景(view panorama)"选项'' – 此选项可为大尺寸图片自动显示项目动作链接,从而在全景查看器中查看某张相片。大尺寸被定义为:图片宽度必须大于设定好的全景宽度并且宽高比必须大于0.6。
* ''Add "view panorama" option in item actions for wide images'' - Option to automatically show an item action link for wide images to view a photo in the panorama viewer. Wide is defined as: image width must be larger than the configured panorama width AND the ratio of width to height must be larger than 0.6.
* 在编辑相片(Edit Photo) -> 相片(Photo)中启用/禁用每张相片的全景查看器小程序。
* Enable / disable the panorama viewer applet for each photo in Edit Photo -> Photo.


=Picasa模块=
[[Category:Gallery 2:Modules]]=Picasa Module=


==描述==
==Description==
该模块使你能够由Picasa2向Gallery2导入相册。
This module lets you import albums from Picasa 2 into Gallery 2.
它将会保持原有的次序标题以及名称。
It will keep the order, the captions and the names.


==特点==
==Features==
添加Picasa 2 xml导入功能。
Adds Picasa 2 xml import functionality


==用法==
==Usage==
*自Picasa导出
*Exporting From Picasa


(另见: [[Gallery:How_to_Add_Items#如何从Picasa2添加项目|如何从Picasa添加项目]]
(Also see: [[Gallery:How_to_Add_Items#How_to_Add_Items_from_Picasa_2|How to Add Items from Picasa]]


要从Picasa进行导出的话,请右键点击某相册,接着点击
To export from Picasa you right click an album and click
"Make a Webpage"(或选择"Folder/Export as Webpage,还可以直接ctrl键+w)"  
on "Make a Webpage" (or you choose "Folder/Export as Webpage or even ctrl-w)"  
,再次你进行尺寸的选择,并导出
from the menu), from there you select the sizes, and the export
文件夹位置。在下一个窗口中你需要选择"XML Code"
folder location. In the next window you need to choose "XML Code",
并执行。接着浏览到刚选择的文件夹
and off it goes. Then you navigate to the folder you just chose
并将其架设到你的Gallery服务器上。
and beam that up on your Gallery Server.


或者你可直接试用Picasa中新的"Tools>Experimental>Publish via FTP..."功能。它使用类似"Make a Webpage"的导出功能,但稍后会让你选择/配置FTP帐号,而在此Picasa会直接上传文件夹。这就无需使用单独的FTP客户端进行手动上传了。
Or you can directly try using the new "Tools>Experimental>Publish via FTP..." function in Picasa. This uses the same export function as "Make a Webpage", but lets you then choose/configure an FTP account where Picasa will directly upload the folder. This eliminates the need for a manual upload using a separate FTP client.


*导入Gallery2(自Add Item)
*Importing Into Gallery 2 (From Add Item)


该模块的新特点,所有的用户可以从Picasa
The new feature to this module is that any user can import files
导入文件,只需简单地点击"Add Item"即可。Picasa 2标签会出现
from Picasa by simply clicking on "Add Item". A Picasa 2-Tab will
在可选择本地ZIP文件的位置。该ZIP文件夹必须
appear where a local ZIP file can be selected. That ZIP file has
含有picasa到处(归档root中的index.xml)。
to contain a picasa export (index.xml being in the root of the archive).
用户可以选择相片标题,摘要以及描述的
The user also can select how picture titles, summaries and descriptions
分派方式。
are assigned.


*导入Gallery 2(自Site Admin)
*Importing into Gallery 2 (From Site Admin)


一旦你激活了该模块,就会在管理菜单的导入部分
Once you have activated the module you get a new entry "Picasa 2"
看到新的条目"Picasa 2"。如果你点击它的话,
in the Import section of your Administration menu. If you click on
就可以 选择Picasa导出目录的本地路径,
that it will let you select the local path to the Picasa export
而该目录应当保存于本地(将来会有
directory which should be stored locally (there will be upload
上传支持)。你还可以选择导入相册的
support in the future). You also select the album you want to import
目标相册,
your album into.
''有效本地路径为Gallery2的相对文件夹路径,以短破折号结尾并且不包括任何文件信息(无需指向xml-file自身)。举例: "../upload/myexportedalbum/"将会指向父族文件夹"upload"中刚上传的文件夹"myexportedalbum",该文件夹与Gallery2处于同一级位置。''
''Valid local paths are relative folder paths to your Gallery 2 installation, end with a slash and don't include any file information (no need to point to the xml-file itself). Example: "../upload/myexportedalbum/" would point to the just uploaded folder "myexportedalbum" in the parent folder "upload" that is on the same level as your Gallery 2 install.''


此后,它就能自己运作并进行告知。
Thereafter it should do everything by itself and report back to you.


==被请求的特点==
==Requested Features==
如果站点管理也允许选择标题的分派方式的话就好了。
It would be nice if the Site Admin version also allowed you to choose how captions were assigned.


[http://feeds.feedburner.com/~r/blogspot/Dcni/~3/258635000/add-your-own-buttons-to-picasa-upload.html| 与Picasa API的整合]
[http://feeds.feedburner.com/~r/blogspot/Dcni/~3/258635000/add-your-own-buttons-to-picasa-upload.html| Integration with Picasa API]


==Hacks==
==Hacks==
如果你没有输入标题,Picassa会自动将itemName复制到itemCaption字段中。就个人而言,如果我没有在某相片上输入一个标题的话,我宁愿它保持没有标题的样子。为了防止标题成为itemName 的副本,请按下面的描述进行修改:
If you do not enter a caption Picassa will automatically copy the itemName into the itemCaption field.  Personally if I don't enter a caption on a photo, I would prefer it remain un-captioned.  To prevent captions from being duplicates of the itemName simply modify the code as described below:


编辑211行的'''GALLERYROOT/modules/picasa/classes/Picasa2DataParser.class'''
Edit '''GALLERYROOT/modules/picasa/classes/Picasa2DataParser.class''' at line 211.


'''删除'''
'''Delete''':
             $albumArray['images'][$i]['caption'] = $imageArray[$i]['itemCaption'];
             $albumArray['images'][$i]['caption'] = $imageArray[$i]['itemCaption'];
'''替换'''
and '''Replace''' with:
             if ($imageArray[$i]['itemName'] == $imageArray[$i]['itemCaption']){
             if ($imageArray[$i]['itemName'] == $imageArray[$i]['itemCaption']){
                 $albumArray['images'][$i]['caption'] == <nowiki>''</nowiki>;
                 $albumArray['images'][$i]['caption'] == <nowiki>''</nowiki>;
第71行: 第71行:
             }
             }


==Bug==
==Bugs==
目前尚无有关该模块的已知问题。
Currently there are no known issues for this module.


==注释==
==Notes==


[[Category:Gallery 2:Modules]]
[[Category:Gallery 2:Modules]]


该模块无法接受导出相片的标题中出现"&"。这并非一个bug,因为Picasa是会生成无效XML的。
The module doesn't like "&" in the captions of exported pictures. This is not a bug since Picasa's the one generating invalid XML.
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)