Gallery: Gallery1与Gallery2 的比较:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
→‎水印
 
(未显示同一用户的12个中间版本)
第1行: 第1行:
=Celebrity Death Match: Gallery 1 vs. Gallery 2=
=死斗擂台赛:Gallery1对阵Gallery2=


==Introduction==
==介绍==
:Currently, this article is being tweaked for the up-coming release of G2.2. Previously, it was edited to include features added in G2.1 and of course the original G2.0 release.  G2.2 adds a few neat features, one of the most awsome I think will prove to be the "downloadable plugins" feature.  It will let you download *new* plugins right from inside G2, instead of fooling around with FTP or what ever.
:此文目前应即将发布的G2.2做了适当的调整。在此文早些时候的编辑中包含有G2.1中添加的特点,当然还包括原始的G2.0版本。G2.2添加了一些简洁的特点,其中我认为最棒的是"可下载插件(downloadable plugins)"特点。它允许你直接由G2内部进行**插件的下载,而无需使用FTP瞎捣鼓了。


:Due to the co-existance of Gallery 1 & 2, you might have some questions about the whole thing.  This article compares these two products, highlighting their differences, similarities, advantages and disadvantages.  It should help you decide which one is better for you, both by offering suggestions and making sure you know as much as possible before choosing.  The best place to start is with a brief overview of both products, so you will know the very basics before taking the big plunge.
:由于Gallery1和Gallery2的并存,你可能就要发问了。该文比较了两者,将二者的不同之处,相似之处,优点及弊端都揭示给读者。这将帮助你选择最适合的一款,同时也给出了建议,并确保你在决定之前,能够获取尽可能多的信息。最好的出发点就是简要地介绍两个产品,这样你就能先对二者做个基本的了解了。


:Gallery 1 and 2 are both web based photo album software, written in PHP.  This means that they are meant to reside on a web server, usually in a hosted environment.  They use an interface that is entirely web based to make it simpler for you to upload, maintain and show off your images.  They both use certain external programs to create thumbnails and custom sized images and they are organized in a hierarchy of folders, with thumbnails of images which when clicked lead to the larger versions of the image.  Some of the main features are that it is multi-user, web based, highly automated, flexible and fairly user friendly.
:Gallery1和2均为基于web的相片相册软件,由PHP编成。这意味着二者都应依托web服务器,一般是在托管的环境下。它们使用的接口为完全基于web的,这样一来上传,维护和显示图片都更为简单。它们皆使用特定的外部程序进行缩略图和自定尺寸图片的创建,而且它们是在分层文件夹中进行组织的,点击图片的缩略图之后就会转到对应的较大尺寸的图片。主要特点中的一部分为:多用户的,基于web的,高度自动化,灵活多变并且面向用户。


==Installation==
==安装==
:Installation of both G1 and G2 start with similar steps.  You will need to obtain the “code” from the gallery site, extract, and upload it to your site and run a setup wizard.  You might need to setup some image manipulation binaries, but there is a chance your hosting provider will already have one which will end up saving you some time.  They start to get very different at the setup wizard, G1’s is very complicated and has a lot of options.  G2’s is very pretty with as few options as possible to configure, though you will need to give it some database information that G1 does not need.
:G1和G2的初始安装步骤都很相似。你需要从gallery站点获取 “代码”,进行解压,上传到你的站点并运行安装向导。你可能需要安装某些图片操作二进制,但很可能你的托管服务提供商已经为你准备好了,这能节省不少时间。随着安装的深入,步骤也越发不同了,G1的安装非常复杂并且牵涉到很多选项。 G2的安装则简化了不少,配置选项尽可能地被压缩到最小的数目,但你得提供一些数据库信息,G1则没有对此做要求。


:The release of G2.1 saw a marked improvement in the already great installer.  The improvements are primarily visiblity and usability changes, done after a study by [http://openusability.org OpenUsability].
: G2.1版本在已有的安装程序中做了改良。这些改良主要是可视化及可用性方面的修改,这些改良是在[http://openusability.org OpenUsability]的调查研究之后作出的。


:If you have your own server and are just starting out by installing the very basics (Apache, PHP, MySQL), things can get a little tougher.  Most server distributions make installing these applications a snap, but some have minor stumbling points that are simple to fix but not obvious to figure out.  MySQL can sometimes be especially painful to get going for a novice.
:如果你有自己的服务器,且只安装了最基本的东西(Apache,PHP,MySQL)的话,事情就有点难办了。大部分的服务器distribution使得这些应用程序的安装极快,然而有些瑕疵能够修复却很难弄明白。对于初学者而言,MySQL足以让他们想破脑瓜了。


:''Which to choose?'' Since G2 has the simpler and more intuitive installer, I think it would be the first choice.  If you like to fill out lots of variables, G1 might be better for you.  If you are starting from scratch, G1 has the advantage of *not* requiring MySQL which can sometimes be painful to get working.
:''该选择哪一个呢?'' 因为G2具有更简单且更直观的安装程序,因此我觉得它是首选。但是如果你更像自己制定更多的变量的话,G1可能会更合你的口味。如果你只是略通皮毛的话,G1不对MySQL做要求的优势就体现出来了,因为MySQL对于初学者而言就是恶梦。


==Database vs. File Metadata Storage==
==数据库对文件元数据存储==
:One of the main differences between Gallery 1 and 2 is how the “metadata” (comments, titles, descriptions, keywords, etc) are kept and maintained.  Gallery 1 uses a file based approach whereas Gallery 2 uses a database approach.  It might not be obvious, but they both have advantages and disadvantages that are probably the first you will need to take into account when picking.  First of all, if your hosting provider doesn’t offer a database option (like MySQL) you have only two options:  Use Gallery 1 or find another host.
:G1和G2之间主要区别是“元数据”(评论,标题,描述以及关键词等)是如何保留及维护的。Gallery1使用的是基于文件的方法而G2使用数据库的方法。这可能不明显,但它们都具有各自的优势和缺陷,所以在你作出选择之前要好好考量一下。首先,如果你的托管服务提供商无法提供数据库选项(如MySQL)的话,那你只有两条路可选了:使用Gallery1或换个host。


:Storing the metadata in a file is much simpler and thus can be faster for smaller galleries.  It also has fewer resource requirements, so will run better on lower end or older servers.  Of course, it also has drawbacks.  As G1 grows, it will use up more and more memory (ram) to do certain operations.  With average usage, G1 starts to top out at around 5,000 images.  There are of course sites who host far more than that with ease, and sites that choke much earlier.
:将元数据存储在某个文件中更简单,且对较小的gallery来说更快速。它对资源的要求也更低,因此相对地在低端或较旧的服务器上也能更好地运行。当然它也有缺点。随着G1容量的增多,它会用掉更多的内存(RAM)以完成某些操作。平均下来,G1的5000张图片就该封顶了。当然也有站点能够轻松地托管多余该数字的图片,但寿命大大降低了。


:Keeping the metadata in a database also has some very real advantages and disadvantages.  The biggest advantage is scalability; G2 should be able to keep five, ten, one hundred or even a million images with very little performance difference between them.  Of course, other aspects will come into play to determine a realistic maximum but the theoretical limit is big, very big.  As proof of this, the [http://www.care2.com/c2c/photos/ care2 connect] site is based on a very modified, early alpha version of G2 and hosts over 900,000 images (and probably has 5,000+ users). Being database driven does have a drawback though, if it takes a fairly fixed amount of time to load up the “framework” to deal with the database, smaller galleries may see no advantage or even increased times.  A file based system may take 0.1 seconds to open up a 10 image album, but a database system which is fixed at 0.5 seconds for *any* album is still slower for 10 images. Of course, it might take that file based system 10 seconds to load an album with 1,000 images and it would just crash and die trying to load 10,000 images.
:将元数据保留在数据库中利弊皆有。最大的优势就是可扩展性;G2应当能够无区别地保留5张,10张,100张或100万张的相片,而性能方面并不会因照片数量受太大影响。当然其他方面制约着相片数量的上限,但理论上来说,这个上限不小,或者说很大。为了证明这一点,[http://www.care2.com/c2c/photos/ care2 connect]站点是基于较早期Gallery的alpha版本上的,并且保留有超过90万张图片(而且可能有超过5000名用户)。数据库驱动的确有劣势,如果要以指定好长度的时间来载入“framework”以处理数据库的话,那么较小的gallery可能无法看到优势所在,甚至会花费更多的时间。一个基于文件的系统打开10张相片的相册可能花费0.1秒,但数据库系统指定的读取时间是0.5秒,那么打开10张相片相册的速度显然大于0.1秒,也就是多花了时间。当然,该基于文件的系统可能需要10秒来打开含有1000张图片的相册,当读取1万张图片的相册时就会崩溃。


:''Which to choose?'' If your gallery is going to be large, the obvious choice is G2.  If your gallery is going to be small (and stay small) and/or running on very low end hardware, it is a tougher choice.  G1 would probably run better for most people, but the flexibility and power of G2 will make most users happier.  In this situation, I would suggest trying both and picking the one you like best.
:''选择哪个?'' 如果你的Gallery内容很多的话,必然要选择G2了。如果你的gallery内容很少(并一直保持很少),并且依托较低端的硬件的话,那么选择起来就比较困难了。G1可能会比较管用,但跟G2的灵活性和强大的功能比起来就相形见绌了。在这种情况下,我会建议对二者都做个尝试,然后再选取你最中意的来使用。






==Thumbs, Resized and Full Images==
==缩略图,重设尺寸图片及全尺寸图片==
:G1 and G2 both support a user definable size for thumbnails, resized images and full images.  G2 adds to this by allowing multiple resized images to be specified, which could be very useful for some.  Both G1 and G2 also allow you to modify which part of the image is used for the thumbnail, very useful for making a thumb include only what you want.  G2 takes this a small step further by also allowing you to upload your own custom image to use as a thumbnail for that specific item.  G2 also has a square thumbs module which will automatically make square thumbs (cropped to square aspect ratio or padded to fit in a square).  The crop-to-square feature is available as a modification to G1 however, so it is not entirely unique. Both G1 and G2 allow the user to pick a maximum file size or dimension, which helps to limit the amount of space used by images.  Both G1 and G2 (from release G2.2) support auto-rotation.  If your camera has an orientation sensor or *sometimes* a rotation button you can use on the camera (my Olympus C5050Z has this), G1 and G2 will automatically orient your images correctly.
:G1和G2都支持玩家定义缩略图,重设尺寸图片及全尺寸图片。G2允许定义多个重设尺寸图片,某种意义上来说很有用。G1和G2都允许你指定图片的某个部分用于缩略图,该可定制性也十分诱人。G2更进一步地允许你上传自定义的图片,并将其用于特定项目的缩略图。G2还具有的矩(方)形缩略图模块会自动制作矩(方)形缩略图(建材为方形宽高比或按比例填充到方形区域中)。crop-to-square的特点也可通过修改成为G1的特点,但不是独一无二的了。G1和G2都允许用户选择某最大的文件尺寸或规格尺寸,这能有效地对图片占用空间进行限制。G1和G2(自G2.2版本)都支持自动旋转(auto-rotation)。如果你的相机具有方向感应器或旋转按钮的话,那么G1和G2都会自动正确地调整相片的方向。


:G1 and G2 both support a fairly wide variety of image formats, but G2 excels here by supporting a few more interesting ones such as PSD, PDF and TIFF.  G2 is also able to handle non-image/movie file types much more easily, allowing custom thumbnails for different file types as well as simply allowing them to be uploaded.
:G1和G2的图片格式支持范围都很大,但G2在这方面更胜一筹,它还支持PSD,PDF和TIFF一类的格式。G2还能更轻松地处理非图片/电影文件类型,允许为不同文件类型自定义缩略图并且允许进行上传。


:''Which to choose?''  As G2 supports more image formats than G1 and (from release G2.2) also supports auto-rotation, it is a fine choice, but G1 is not far behind.
:''选择哪个?''  因为较之G1,G2支持更多的图片格式而且G2.2以后的版本还支持自动旋转,所以G2不失为一个好的选择。G1只是略逊一筹罢了。


==Image Toolkits==
==图片工具包==
:Gallery 1 and 2 are both fairly similar in this area, so it will be very brief.  They both support using [http://netpbm.sourceforge.net/ NetPBM] and [http://www.imagemagick.org/ ImageMagick], two very popular open source image manipulation toolkits, for thumbnail and sized image creation.  There is also a modification for G1 to allow [http://ffmpeg.sourceforge.net/index.php ffmpeg] support.  Gallery 2 goes quite a few steps further though, by also supporting GD, dcraw and [http://ffmpeg.sourceforge.net/index.php ffmpeg] out of the box.  GD is an image manipulation program that can (and usually is) built into PHP, dcraw is able to convert the RAW format images from many digital cameras and perhaps the most exciting is [http://ffmpeg.sourceforge.net/index.php ffmpeg] which allows creation of thumbnails for various video formats.  Yes, that’s right you can upload a video and have its thumbnail be any frame from within it.  Gallery 2 also makes it much easier to support different tools through its module system, allowing for future expansion in a way that is far simpler compared to G1.  Another advantage G2 offers is that <strong>all</strong> of the image toolkits can be active at the same time.  This means that GD, IM and NetPBM can all be used at the same time, and in a certain order.  In most cases, this allows for a wider variety of supported image formats.
:Gallery1和Gallery2在这个方面相当相似,因此只进行简略叙述。它们都支持[http://netpbm.sourceforge.net/ NetPBM][http://www.imagemagick.org/ ImageMagick]—二者都是很流行的开源图片处理工具,用于创建缩略图和定义尺寸的图片。G1也可经修改以支持[http://ffmpeg.sourceforge.net/index.php ffmpeg]。而Gallery2则更先进一点,同时支持GD,dcraw和[http://ffmpeg.sourceforge.net/index.php ffmpeg]。GD是一个图片处理程序,常以PHP构建;dcraw能够转换来自诸多数码相机份的RAW格式图片;而最令人激赏的则是[http://ffmpeg.sourceforge.net/index.php ffmpeg]了,它允许创建各种视频格式的缩略图。对,你可以上传一个视频并可将其中任意一帧画面作为缩略图。Gallery2通过自身的模块系统能够更轻松地支持不同的工具,这就使得将来的扩充更为简便。另一G2所带来的优势就是<strong>所有</strong>图片工具包可同时处于活动状态。这就意味着按照某种次序,GD,IM和NetPBM可以同时使用。在大多数情况下,这将提供图片格式更广的支持范围。


:Both G1 and G2 have support for EXIF data, which is important to most digital camera users because it stores detailed information about settings, dates and many other aspects of the image.  G2 goes another step further by supporting IPTC, which is another system used for embedding information in an image.
:G1和G2都支持EXIF数据,这对大多数相机用户来说至关重要,因为它会存储有关设定,日期及图片其他方面的细节信息。G2更进一步地支持IPTC,这是另一用于图片内嵌信息的系统。


:''Which to choose?''  In this respect, G1 doesn't have any advantage over G2.  G2 allows those without the ability to execute binaries the option of GD, use of IPTC data, easy video thumbs and images from RAW format.
: ''选择哪个?''  在这方面,G1可以说甘拜下风了。G2无需执行二进制就可以达成这些目的,GD的选用,IPTC数据的使用,简便的视频缩略图以及RAW格式图片的处理都无疑印证了这一点。


==Permissions System==
==权限系统==
:Gallery 1 and 2 both feature an extensive permissions system.  They allow you to choose the owner of albums (giving them full control), who can view an image, who can upload images, who can make comments and many other aspects.  Groups are a feature of G2 that makes management of large numbers of users much simpler and easier.  Unfortunately, the user interface for permissions in G2 is not very intuitive, though it is very powerful and offers a finer control than G1.  This is a known issue and will be worked on at a future date for sure.  Both G1 and G2 support "hidden" items which are images or albums that are only visible when the user visits the URL directory or has sufficient permissions to see it.  G2 also has password protected albums, which can make it easier to restrict access to images but still also be relativly easy to share.
:Gallery1和2都具有庞大的权限系统。它们允许你指定相册拥有者(赋予他们所有控制权),拥有者可以查看图片,上传图片,发表评论等等。用户组也是G2的一大特色了,它使得大量用户的管理变得更加简单。遗憾的是,G2权限的用户界面不是很直观,尽管它比G1要更强大并且提供更好的支持,但唯独这一点让人觉得遗憾。不过这个问题已经放到了已知问题处理日程中了,将来肯定会得到解决。G1和G2都支持"隐藏的"项目,这指的是图片或相册仅当用户访问URL目录或具有足够查看权限时才表现为可见。G2还有受密码保护的相册,这样对图片访问权的限制就更加简单了,而且相对来说共享起来也不是问题。


:There is of course one very big difference between G1 and G2 when it comes to permissions.  For G1 to work, your directory of images has to be publicly accessible on the internet.  This means that anyone can view the image directly, perhaps by guessing the name of a file or by using your site to get an idea of the file and directory names.  It can be limited by some means, but it isn’t always possible.
:有关权限,G1和G2之间有一个很大的区别。要让G1运作,你的图片目录必须为公共网络可访的。这意味着所有人都可以直接查看图片,只要能猜中你的图片文件名或目录名称就可以直接查看了。这可以通过某些手段加以限制,但并非总是可行的。


:In G2, the directory of images can (and should) be stored outside of your “web root.”  This means that if your website is in the directory /domain.com/htdocs/, you can store your G2 images at /domain.com/g2data/ which is impossible to access from the internet.  All images are accessed directly through G2’s framework, making the permissions impossible to bypass when the images directory is not web accessible.
:在G2中,图片目录(应当)被存储于web根目录之外。这意味着如果你的站点位于目录/domain.com/htdocs/中的话,你就可以将G2图片存储在/domain.com/g2data/中,这里是无法通过网络进行访问的。所有图片都可直接通过G2框架进行访问,这就使得非网络可访的图片目录无法通过绕行进行访问了。


:''Which to choose?'' If the relativly complex permissions UI of G2 seems daunting, G1 is a good choice.  If you want your images to be absolutely protected by your permissions or you manage a large number of users, G2 is the obvious choice.  If you don’t mind waiting for a better permissions UI, G2 is the better choice.
: ''选择哪个?'' 如果你觉得G2的权限UI较为复杂的话,可以使用G1。但如果你希望图片能够完全通过你所设定的权限得到足够保护,或者你需要管理大批用户的话,G2无疑是你的选择。如果你不介意G2可能迟来的较好的权限UI的话,就选择G2吧。


==Themes==
==外观主题==
:Both Gallery 1 and 2 offer a theme system that allows users to customize the look and feel of their gallery.  In G1, it is really limited to colors and to a limited extent, the look.  Most G1 themes look fairly similar, differing mainly in color, font and decoration.  The general layout remains mostly the same.  G2 in contrast is a vastly different beast.  It comes with a couple of themes that are all very different from each other, and the potential is literally endless.  If you have the time, skills and courage you can make your G2 look like any other photo album system you have ever seen.  You can even make it look like one you haven’t seen.  This is due to the extreme flexibility of the theme system in G2, which was built from the ground up with themes in mind.  There are a couple of themes being developed as part of the Google Summer of Code and a theme contest is planned.  At some point, the theme scene will explode.
:G1和G2都提供外观主题系统,这将允许用户自定义gallery的外观效果。在G1中,这仅限于颜色的自定义以及相当受限的外观种类。大部分的G1外观主题看起来大同小异,主要区别只是颜色,字体和修饰,而总体布局基本相同。G2则成为了鲜明的对比,可谓层出不穷的外观主题集合体。G2所带有的大量外观主题都各不相同,而其中蕴含的变数是无穷尽的。如果有时间,有技术并且有点胆识的话,你完全可以将G2模仿成任何你见过的相片相册系统。你甚至可以打造自己独一无二从未见过的G2相片相册系统。这都要归功于G2极为灵活的外观主题系统。其中有不少外观主题都被开发为Google Summer of Code的一部分,并且某个外观主题竞赛也在筹划之中。某种意义上说,G2的外观主题世界可谓各种爆料之所在。


:One of the largest issues with themes and their settings was resolved in the G2.1 release.  Now, all theme settings can be recursed so that changes to themes are easy to accomplish.  G2.2 supports recursive watermarking, which makes it even better.
:外观主题及其设定最大的问题已在G2.1版本中解决。现在所有的外观主题都可以被沿用,这样对外观主题所作的更改就能简单地应用到相关联的相册了。G2.2支持递归式的水印效果添加,这无疑是如虎添翼。


:''Which to choose?'' There can be only one in this case really: G2’s themes are just so much more attractive and flexible it would be hard to pick G1.
: ''选择哪个?'' 这里只有一种选择,毫无疑问的一种选择:G2的外观主题更加吸引人也更加灵活,因此想选G1还真得有点勇气。


==Integration==
==整合==
:Both G1 and G2 support some level of integration with a fairly large number of web based software products.  It ranges from something as simple as easy linking of images all the way up to sharing users and an indistinguishable layout.  There are so many for both that it would take too long to discuss in detail.  Instead, if this is your reason for choosing between G1 and G2, it would be best to look into the specific integration you prefer and see how well it is supported.  Just some of the popular packages offering G1 or G2 integration are WordPress, phpBB2, Mambo (Joomla), PHPNuke, Invision Board, Drupal, PostNuke and vBulletin. [[Gallery2:Integration:Available_Integrations|List of all available G2 integrations]].
:G1和G2都支持与相当数量基于web的软件某种程度上的整合--从简单的图片链接到用户共享以及难辨的布局。由于牵涉到的内容太多,因此要花费很多时间进行细节上的讨论。如果你要在G1和G2中进行选择的话,最好看看自己比较偏好哪种整合并看看支持得如何。某些提供G1或G2的整合包有WordPress,phpBB2,Mambo (Joomla),PHPNuke,Invision Board,Drupal,PostNuke以及vBulletin。 [[Gallery:Integration:Available_Integrations|可用G2整合列表]]


:Another important factor for skilled developers is that G2 was written with integration in mind.  So if you need to start from scratch, [[Gallery2:Embedding|G2 includes an API]] which allows for user syncing and many other items.  G2 can literally become part of whatever you want, instead of just looking like something included in your format.
:另一对熟练开发者的显示问题就是,G2编写时是将整合这一块作为考量范围的。如果你需要从头开始的话,[[Gallery:Embedding|G2包含有的API]]允许进行用户同步等等的项目。G2理论上可以满足你所有的需求,而不仅仅是纸上谈兵的比划比划而已。


:''Which to choose?'' In this case, I would first check on the status of both G1 and G2’s integration and if this is the main factor in your determination, pick the one with the more advanced integration.  Either way, chances are pretty good that the G2 integration for the product you choose will advance fairly quickly to the point you want.  If you are a developer and will need to write your integration from scratch, G2 is the way to go.
: ''选择哪个?'' 在这种情况下,我会首先检查G1和G2整合的状况,而如果这是你作出决定的条件的话,请选择具有更高级整合的那一个吧。还有,G2整合会更好地与其他飞速发展中的程序兼容。如果你是一位开发者,而且需要从皮毛开始学习编写自己的整合的话,G2会是一条不错的途径。


==Uploading==
==上传==
:The method for uploading images to G1 and G2 is almost certainly going to be the most important aspect for your gallery’s users.  If it is hard to use, ugly, or awkward, people will complain and your family might decide bodily harm is deserved.  Luckily, the Wife Acceptance Factor (WAF) is fairly high due to the number of options available for upload.
:对你的gallery用户来说,向G1和G2上传图片的方法将成为最受重视的一方面。如果它难以使用或很怪异的话,人们就会抱怨。幸运的是,女性接受因素(Wife Acceptance Factor (WAF) )由于上传可用选项的数量而显得较为乐观。


:Both G1 and G2 support an HTML form for uploading where users simply click a browse button, find the file they wish to upload, select it (and up to 10 more) and go.  For a few images this is pretty easy, but for more than about 5 it gets tedious.  That is why they also offer a Java mini-applet that loads right in the upload page.  Uploading is as simple as dragging the images from a file explorer shell to the Java applet and clicking upload.  There is also an “Add Pictures” button which will popup the familiar file selection box, but instead of only allowing a single selection it allows multiple.  The final upload method with a high WAF is the built in Windows XP upload.  On the computer you intend to use, simply download and install the registry file that is offered in your gallery.  Now you will have a context based sidebar in XP that will allow you to upload any number of images, right from the shell.
:G1和G2都支持HTML形式的上传,用户可以点击浏览按钮,找到希望上传的文件,选中并开始上传。对少量的图片,此操作很简单,但图片数量达到一定程度时,此过程就显得很繁冗了。这就是他们还提供一个在上传页面进行载入的Java迷你小程序的原因了。上传过程很简单,如同由某个file explorer shell拖取图片至java小程序并进行上传一样简单。还有“添加照片(Add Pictures)”按钮,它会弹出熟悉的文件选取框,与仅允许单个选取不同的是,它允许进行多选。最后具有较高WAF的上传方法是内置的Windows XP上传。点击下载并安装提供给gallery的注册表文件即可。现在在XP中你就有了一个基于context的边栏了,它允许你直接由shell上传任意数量的图片。


:Moving on to the more geek related upload methods, there's a full blown Java-based Gallery Remote (similar to the Java mini applet, but of course much bigger), uploading from a local server and uploading from a URL.  The full Java applet Gallery Remote is a standalone application run on a client computer that allows you to interact with your gallery in many ways, including photo upload.  Gallery Remote offers drag-and-drop file upload when used with KDE, offering a very attractive option for Linux and *BSD users.  Uploading from local server allows you to provide a path on the file system where files will be found, perhaps uploaded with FTP by you earlier.  The upload from web page is a very interesting upload method which most people overlook.  If you give it the path of an image file, it will download it and add it to your album, but if you give it the path to an html file (or directory), it will parse the html and find all references to images and give you a list to pick and choose from.  Very useful!  G2's local file upload goes beyond what G1 offers in that you can select a ''directory'' for upload, and the entire directory tree will be recreated as an album structure, with all of the files in the directory added, mirroring the structure on disk.
:接着来看看更加高端的上传方法,如高度成熟基于java的Gallery Remote(与Java迷你小程序相似但更大),自某个本地服务器及某个URL进行上传。完整的Java小程序Gallery Remote是一个运行于客户端计算机上的独立应用程序,它允许你以多种方式与gallery进行交互,其中包括相片上传。当与KDE使用时,Gallery Remote提供拖放式的文件上传,这对Linux和*BSD用户来说是很有吸引力的。自本地服务器上传允许你提供文件系统的某个路径,在这个路径下可以找到文件,或者之前就已经FTP上传过了。自web页面上传的方法很有趣,很多人都在关注。如果你提供某图片文件的路径,它就会将其下载下来并添加到你的相册中;但是如果你提供的是某html文件(或目录)的路径的话,它就会解析你所提供的html并找到所有图片的参照,接着提供给你一个列表以从中进行选取。可谓很有用处!G2的本地文件上传超越了G1,其可以选取某个要上传的''目录'',而整个目录树会被重新创建为某个相册结构,带有所有添加于目录中的文件,并将该结构映射到磁盘上。


:G2 adds one more method that might not be fully considered an upload method, but must be mentioned here for completeness.  That is its webcam feature, which allows you to input a URL which will be refreshed at the interval you specify.  So if you point it at a webcam, it will download it when ever it should instead of just once.  Interesting, but not the full blown webcam system many might hope for.
:G2多增加的一个方法可能不可以完全看作上传方法,但为了完整起见在此提一下。该方法就是webcam特点,它允许你输入某个URL,而该URL会按照你设定的间隔定期刷新。因此,如果你将其指向一个webcam的话,它就会在该下载时进行下载,而不止一次。有趣但不够成熟的webcam系统同样也寄托了不少人的期望。


:G2 also adds the ability to upload images directly from certain Nokia camera phones.  Of note are also a few modules and tools, such as a Picasa importer and a plug-in for iPhoto (these two are not yet bundled with G2) and the scripts galleryadd.pl and g2add.pl (nearly the same script, but the former is for G1 and the latter for G2) which can be used locally or remotely.
:G2还能够直接从Nokia数码拍照手机上传图片。还有一些模块及工具,比如Picasa导入器以及iPhoto的插件(两者尚未与G2进行捆绑)以及scripts galleryadd.pl和g2add.pl(几乎是相同的脚本,但前者是针对G1的,后者是针对G2的),二者都可以本地或远程使用。


:''Which to choose?''  In this case, since G1 and G2 share a base feature set with G2 bringing a few more extras in, I believe the choice is G2.  That said, they are both fairly well off and similar, so picking G1 wouldn’t be a mistake either.
: ''选择哪个?''  在这种情况下,因为G1和G2共享了基础特点,而G2则带来了稍多些的内容,所以我认为选G2会比较好。但它们在这方面可谓势均力敌,因此选择G1也不会有什么不对。


==Watermarking==
==水印==
:For many people, this can be a very important aspect of displaying photos online. Since it is impossible to fully protect an image from being “stolen” if it is visible on the screen, the best way to protect an image is to watermark it.  This is something that both G1 and G2 support.  G1 and G2 are able to selectively watermark thumbnails, sized images and full images at the user’s choice.  G2 again goes a few steps further.  With G1, if you watermark the “full” image it is applied directly to the full image and is thus permanent.  In G2 watermarks are applied to copies of the image instead, which makes it possible to turn watermarking off, change the watermark in the future and a host of other things.  One of those other things is to only watermark images that are hot linked.  That means if someone visits your site, all the images will have either no watermark or a watermark of your choosing (perhaps something like “copyright somebody”).  If someone then takes the link to your photo and puts it in their own site, the watermark might say “This person is hot linking this picture from domain.com.”  A great and perhaps fun solution to hot linking!
:对于很多人来说,线上的相片展示离不开这一块儿。由于很难保证某张相片不会被别人“剽窃”,而且这可是真格的开放式的展示;因此最好的保护手段就是给图片添加水印效果。G1和G2都支持水印效果,它们都能够应用户的需要可选地为缩略图,设定尺寸的图片以及全尺寸图片添加水印效果。G2在这方面也略胜一筹。使用G1,如果你为全尺寸图片添加了水印,那么该效果就会直接应用于全尺寸图片而且是永久性的。而在G2中,水印效果是被应用于图片拷贝的,这样就可以关闭水印效果,使得将来修改水印效果并用于其他项目成为可能。这里指的其他项目中包括仅为hotlinked(热链的)图片添加水印效果。这意味着,如果某人访问了你的网站,所有的图片都不会带有水印效果或仅你选择的图片带有水印效果(可能是某某某版权所有一类的字样)。稍后,如果该访问者选择了你的图片链接并将其放在自己的网站中时,水印效果就体现出来了,可以是“该图片来自domain.com。”。这也是hot linking比较不错且有意思的解决办法了!


:G1 and G2 both support watermarking at upload, but only via the HTML form.  If you use the java based applet, no watermark is applied.  This is easy to fix (in G2 releases from G2.2, and in G1) simply by watermarking the entire album the images are in.
:G1和G2都支持上传时的水印添加,但仅通过HTML的形式。如果你使用的是基于java的小程序,那么水印效果就不会被应用。只要将图片所在的整个相册都打上水印效果就能解决此问题了(自G2的2.2版本开始及G1)。


:''Which to choose?''  In this case, G2 is better (from release G2.2; previous G2 releases didn't support recursive watermarking).  G2 supports such interesting watermarking features, but they can be hard to use (XXX is this still true?).  G1's watermarking features are easy to use, but they are limiting and possibly destructive to your original images.  If using G1, just don’t watermark your full sized images, so when you migrate, G2 can work with a clean copy of your images.
: ''选择哪个?''  在这种情况下,G2会比较好(自G2.2以来的版本;之前的G2版本不支持递归式的水印添加)。G2支持如此有趣的水印特色,但使用起来却很难。G1的水印特色使用起来很简单,但它们仅限于原始图片而这种局限性对原始图片来说是毁灭性的(无法恢复或取消)。如果使用G1的话,请不要为全尺寸图片添加水印效果,这样当你进行迁移的时候,G2就能够拷贝出一套干净不带水印效果的图片了。


==Voting / Polling / Rating==
==投票/推选/评分==
:G1 and G2.1 both support rating in some fashion.  The G1 rating is more flexible, allow customization of the choice names and different types of polling / voting.  The down side is that G1's rating doesn't look as attractive as G2's.  The G2 rating system is very similar to netflix.  There are 5 stars and the color of the star is used to display both the average rating *and* your rating.  It also includes the number of votes and can *optionally* display the average votes as a small bar.  Since it is using images, the look is fairly easily tailored to your own site.
:G1和G2.1都以某种方式支持评分系统。G1的评分机制更加灵活,并且能够自定名称及推选/投票的类型。G1评分系统的不足之处就是没有G2具有吸引力。G2的评分系统与netflix非常相似,带有5颗星星而星星的颜色则用来显示平均分**你打的分数。它还包括投票数量并能*可选地*将平均投票显示为一个小条。因为G2的评分系统使用了图形,因此能更好地融合到你的网站中去。


:''Which to choose?'' If you need a very elegant and customizable rating system, then G2 has the better offer. If you need rating and polling with user-definable voting options (e.g. text), then only G1 can meet your requirements.
: ''选择哪个?'' 如果你偏好自定性强且美观的评分系统的话,G2更好些。如果你需要用户可定的评分及推选机制的话,G1能满足你的需求。


==Menu Languages==
==菜单语言==
:G1 and G2 both fully support alternate languages in menu and navigation items.  G1 has an extensive set of languages available already, fully translated and ready to go.  G2 is a little worse off in this regard, with only a few translations fully done, more fairly done and a lot that are mostly not done. There's a complete list of [[Gallery2:Localization#List_of_Translations|G2 translations]]. Browse to <nowiki>http://example.com/gallery2/lib/tools/reports/localization.php</nowiki> (available in the devel package of G2) to see the status of the completion of all installed translations. Fortunately, all it takes is someone who speaks both languages and has some time.  Maybe you could help?
:G1和G2都完全支持菜单和导航项目中的其他(备用可选的)语言。G1具有庞大的可用语言集,翻译度很高而且随时可用。G2相对来说在这方面就要差一点了。仅有少数语言的完全翻译版本,有相当一部分只是部分翻译了,还有很多语言几乎没有翻译版本。这是有关 [[Gallery:Localization#List_of_Translations|G2翻译]]的完整列表。浏览<nowiki>http://example.com/gallery2/lib/tools/reports/localization.php</nowiki>(可在G2的开发者整合包中找到)来看看各语言翻译的完成度。幸运的是,完成这些翻译只要通英语并掌握自己的母语再稍微有点时间就够了。或许你能帮助我们?


:''Which to choose?'' If you absolutely need your gallery in a language that G2 doesn’t have available yet, you have to choose G1.  If you are one of the lucky 4 or 5 languages that are 98% done, G2 would probably be the better choice.  If you have the time to actually do the translations, pick G2 and submit them back to the project!
: ''选择哪个?'' 如果你确实需要你所使用语言的gallery,而不幸的是没有该语言版本的话,那就得用G1了。如果你需要的翻译版本正好是少数4到5个翻译度极高的G2版本的话,选择G2没错。如果你能抽点时间帮助我们翻译的话,请翻译好了以后提交给我们!


==Multi-lingual Albums==
==多语言相册==
:One important difference between G1 and G2 is multilingual support in albums.  In G1, I have been struggling to balance display aesthetics and the need to let my Chinese audience and English audience both feel comfortable.  My solution has been to create really concise titles in both languages and display both on the same page.  In G2, you can create a title, a description, and other text info for each language.  Users of one language do not see (and be confused by) text info you created for another language.
:G1和G2之间最重要的区别是相册的多语言支持。在G1中,我竭尽全力地想要平衡显示的美学感,并且要让我的汉语用户及英语用户同时觉得惬意。我的解决办法是使用两种语言创建真正精确的标题并显示在相同的页面上。在G2中,你可以创建使用各语言的标题,描述以及其他文本。某语言的用户不会看到你用其他语言创建的文本。


:A subtle difference also leaves a big impact on practicality in multi-lingual support.  In G1, default installation includes only English.  Each additional language module you add will be shown as an additional option in the language drop box.  In G2, default installation includes all available languages (at least for "full installation"), so the drop box is always crowded with more than a dozen choices.  There is no obvious method to remove any installed language.  So if your gallery is designed to support English and Chinese only, your users will have to scroll really hard to switch to the other supported language - and there is no obvious way for a user to determine which languages do you intend to support.
:微妙的区别也会对多语言支持的实用性造成冲击。在G1中,默认仅包含英语。你所添加的各个额外的语言模块将会在语言下拉框中以额外选项的形式显示。在G2中,默认包括所有可用语言(至少"完全安装"是这样),因此下拉框中总是挤满了各种语言选项。无明显可用的方法以移除任何已安装的语言。因此,如果你的gallery仅用来支持英语和汉语的话,那么用户需要费事地找到其他支持的语言—而用户无法确知你所希望支持的语言是哪个或哪些。


:Assume the gallery's default language is Chinese, a French user will likely select French as the alternate language.  Now the user will see that although all menu items becomes French, all titles and descriptions are still in Chinese.  If this user also reads English, he or she could have obtained more information by switching to English, but he or she is unlikely to try English under this circumstance.  Even worse, this user may have even ventured English (UK) and still find all titles and descriptions in Chinese.  He or she would be even more discouraged to try another language so all the information you prepared for English (US) would be wasted.
:假定gallery的默认语言是中文,某法国用户会选择法语作为可选的备用语言。现在该用户会看到所有菜单的项目变成了法语,但是所有标题及描述仍是中文。如果该用户也认英文的话,他(她)就可以通过转为英文来获取更多的信息了,但在这种境况下尝试使用英文还是不太可能。更糟的是,该用户冒险尝试了英国英语但仍得到中文标题及描述。他(她)就没那个勇气再去尝试其他语言了,因此你提供的美式英语下的信息完全就是浪费。


:Another subtle difference affects practicality in multi-lingual support.  In G1, one can use an explicit URL to force a language selection.  In G2, one cannot.  Therefore, in G1, you can announce your gallery or album in different languages with a definitive URL that makes sure the audience sees the URL in the language used in the announcement.  You cannot do this in G2.
:另一微妙的区别也可影响多语言支持的实用性。在G1中,用户可以选择某模糊的URL来强制某语言的选择;这在G2中行不通。所以在G1中,你可以使用一明确的URL声明不同语言下的gallery或相册,这确保了观者能够看到在声明中所使用语言的URL。这在G2中也不行。


:''Which to choose?'' If you want true multi-lingual support, G2 is definitely superior.  However, if you only plan to add album information in a few of the many supported languages, your effort could be buried in the crowded languages drop list.  You also lose the ability to announce a convenient URL  to audiences of different languages.
: ''选择哪个?'' 如果你想要真正的多语言支持,毫无疑问选择是G2。然而如果仅希望添加个别少数语言中的相册信息的话,你的努力很有可能因繁冗的语言下拉列表而付之东流。你还无法向使用不同语言的用户声明一个方便的URL。


==Photo Printing Services==
==相片打印服务==
:G1 and G2 offer the built in ability to send images to an online photo processing facility, but G1 offers more of them.  Currently G1 and G2 both offer the services of PhotoAccess, Shutterfly and Fotokasten. Fotokasten offers services in European countries, which could be important for some users.  G1 also offers Fotoserve, and adds a service called mPUSH which allows thumbnail images to be sent to cell phones. Fortunately, due to G2’s module system it is much easier to add new services.  It is even possible that a service might develop or commission a module for its service to attract new business!  Speaking of which, the service "Digibug" developed their own module which is included in G2.2. This is a very interesting module because it *requires* site owners to register with them and allows the site owner to set their own detailed pricing. The latest addition to Gallery 2 printing modules list is SnapGalaxy - they provide local (USA & India) as well as worldwide shipping.
:G1和G2提供的内置功能可以将图片发送至某个在线相片处理设备,但G1提供的更多。目前G1和G2都提供PhotoAccess,Shutterfly和Fotokasten的服务。Fotokasten提供的服务包括欧洲国家,这对某些用户来说很重要。G1还提供Fotoserve以及名为mPUSH的服务,它允许将缩略图发送至手机。走运的是,G2的模块系统使得新服务的添加更加简单,甚至某项服务能够引导某个模块的开发以吸引更多的商机。说到这里,"Digibug"服务就开发了他们自己的模块,该模块包括在了G2.2中。该模块很有趣,因为它*要求*站点拥有者使用他们进行注册并允许站点拥有者设定自己详细的价位。最新添加到Gallery2打印模块列表的是SnapGalaxy – 他们提供本地(美国和印度)以及全球范围的发货。


:''Which to choose?'' From release G2.2 (and probably G2.1), the number of photo printing services in G1 and G2 are virtual identical.  If you take into account the Digibug service for G2 which is extremely flexible, the favor definitely falls to G2.
: ''选择哪个?'' 自G2.2(也可能是G2.1)发布以来,G1和G2中的相片打印服务数量基本持平。如果你相中了G2的Digibug极具灵活性服务的话,G2会是你的归宿。


==Hardware==
==硬件==
:For many people, this will not be a concern due to the fact that they are in a shared hosting environment where they either don't know what their hardware is or have no choice in how powerful it is.  Paid shared hosting environments are likely to have much more powerful servers than an individual would have, but they may also tend to be more loaded due to the sheer number of users involved.  This is a hard section to write because it can depend on so many variables, but to sum it up before we start:  G1 will be more appropriate for "low end" hardware, but of course both will work better as the system increases in power.
:对于很多人来说,这不会成为顾虑,因为他们都在一个共享的托管环境中,因为他们都不了解硬件状况或进行能效选择。与个人相比,付费的共享托管环境很有可能具有更加强大的服务器,但他们的负载也因数量不菲的用户而相对较高。在此想清楚地探讨这个问题不是很容易,因为有很多变量需要考虑进来。但在开始前我们先总述一下:G1比较适合"低端"的硬件。当然,随着系统不断强大起来二者的工作状态均会好起来。


:The two main aspects of any system are CPU speed and amount of RAM.  Generally, since G1 uses a file-based system for metadata, you will need more and more RAM as your gallery and number of images in an album grows.  Things in G1 that will increase the amount of RAM needed are the search, stats and block random features.  Moving images and albums can also cause high RAM usage, especially when there are lots of sub-albums.  This is because it has to build the sub-album list in memory by parsing lots of data files that have to be stored in memory.  The only main point when G1 will use CPU is for resizing and building thumbs, but it's likely that you won't really care about this.
:任何系统的两个主要方面都是CPU速度及RAM容量。一般说来,由于G1针对元数据使用的是基于文件的系统,因此随着gallery相册相片数量的增长,你会需要越来越多的内存。G1中对内存增长方面有需求的是search,stats和block random特点。图片和相册的移动也会导致较高的RAM使用量,尤其是处理很多子目录时。原因是,它需要通过解析大量的需要存储在内存中的数据文件从而在内存中建立子相册列表。G1需要使用CPU的仅有的主要一点就是缩略图的建立及尺寸重设,但实际上你不会过于关切着一块。


:G2 should work better in lower RAM environments because the database backend is doing all the grunt work of presenting statistical data, *and* this is what a database is made to do.  G2 will benefit more from CPU speed, mainly because the database and abundance of php code will need it.  G2 can also build thumbs/sizes on the fly (as well as at upload), so the *initial* load of an album or resized image can take longer as G2 creates the thumb/resized image, so CPU speed will come into play here.
:G2在具有较低RAM的环境中的表现更好些,因为数据库后端完成所有的统计数据呈现的工作,**这正是数据库的职责所在。G2由CPU速度的受益将更多,主要原因就是数据库和大量php代码会需要。G2还可实时创建缩略图/重设尺寸图片(也可以在上传时),因此某相册或重设尺寸图的*初次*载入会花费较长时间,因为G2创建缩略图或重设尺寸图片,因此CPU速度在这里起到了关键性的影响。


:Let's try and apply some numbers, but keep in mind they will be very general and your specific results could vary widely.  I would suggest anything below ~800MHz with ~256Mb RAM as "low end", ~800MHz - ~1.5GHz with 512Mb RAM as "middle" and ~1.5GHz+ with 1Gb+ RAM as "high end".  These are just rough guesses.  The amount of actual traffic will have a pretty big effect on your requirements as you climb into the big time.  G1 and G2 should both run on any of these, but G1 will almost certainly have the edge at the low end.  At the middle, it will depend a lot on your specific requirements and at the high end you probably won't notice much of a difference between G1 and G2.
:在此看看一些数据吧,但切记这些数据只是概况,你们所得到的结果会有所不同。我认为低于~800MHz,~256Mb RAM 可看作"低端",而~800MHz - ~1.5GHz,512Mb RAM可看作"中等水平"~1.5GHz+ ,1Gb+ RAM 可看作"高端"。这些只是粗略的估计。实际的工作量需求在你实际使用时才会慢慢明晰起来。G1和G2在这些规格的系统上应该都可以运行,但G1会比较倾向于低端。在中等水平的系统上,这些多取决于你的特定要求,而在高端系统中,你几乎不会发现G1与G2的有多大的差别。


:''Which to choose?''  If you have a really low end system, you will almost certainly want G1.  Installing a php accelerator like eAccelerator can help a lot for any system though.  Try both, and if one drastically outperforms the other pick it.  Just keep in mind that G2 will scale to a huge number of images and users without requiring much more RAM, but G1 will choke at some point for sure.
: ''选择哪个?''  如果你的系统的确比较低端的话,绝大多数时候G1会是你的所想。安装一个如eAccelerator 的php加速器会对所有系统有提升。两者都可以试试,如果其中某个超越了另一个,就选择较好的吧。请记住G2对于庞大数量的图片和用户具有很好的延展性,无需更多的RAM支持,但G1在这方面有时可就够呛了。


==Miscellaneous==
==杂项==
:This section contains some items that are hard to categorize or would yield a very small category.  It is mostly features that one or the other does not contain at all which might be of interest.
:该部分包含某些难以进行分类的项目或者某些难以自成一体的项目。这些特点多为G1可能含有而G2不含有的有趣特点,反之亦然。


:The main features that G1 has that G2 does not that cannot be categorized are email notification of changes and mirroring.  On the G2 side, there are quite a few more.  Of major note is the module system that makes G2 so flexible.  Pretty much any idea can be developed as a module and then used in G2 with no hard work required, simply unzip the module in the modules directory and turn it on via the web interface.  G1 also features RSS feed support and this is not included in the current final release of G2, but it was a Google Summer of Code project that went very well and will be available shortly after release (I have it installed now!).
:G1具有而G2没有的主要的无法自成一类的特点就是电子邮件通知。而在G2一方来看,则有更多。主要是模块系统令G2更加灵活。很多新点子都可以被开发为模块,而将其用于G2也不是很费神--只要将模块解压到模块目录下并通过web界面将其开启即可。G1还带有RSS feed支持的特色,这没有被包括在目前最新的G2版本中,但Google Summer of Code项目进展得很顺利也许稍后就可以使用了(我已经安装了!)。


:Some of these unique modules include captcha, maps, quotas, user albums, shopping cart, zip download and random highlights.
:这些独一无二的模块包括有captcha,maps,quotas,user albums,shopping cart,zip download和random highlights。
* Captcha is the name for a method of using a distorted image of letters to determine if a user is human or a script of some sort.  It can be used during registration, when a user attempts to log in with the wrong password too many times, and to prevent anonymous comment spam.
* Captcha使用扭曲的字母图片来对用户进行验证,防止恶意的机器注册行为。这被用于注册中,比如当某用户视图通过某错误密码尝试登录过多次的情况,并且用于防止恶意的匿名评论。
* The Maps module extracts the GPS coordinates from your images (if your camera supports this) and shows an interactive (Google) map with the positions where the images have been taken.
* Maps模块从你的图片(如果你的相机支持的话)抽取GPS 坐标并显示一个互动的(Google)地图,其中含有相应图片拍摄地点的信息。
* Quotas allow you to limit the amount of space used by a user, assignable on both a per user basis and a per group basis.
* Quotas允许你限制某用户的空间使用量,可同时针对单位用户及单位用户组。
* User albums are the automatic creation of an album for each user in your gallery, useful for easily adding new users to your gallery if you normally give each user their own album. 
* User albums则是为Gallery各用户自动创建相册。如果你通常为每个用户都分配一个相册的话,该模块即可轻松地向gallery中添加新用户。
* The “shopping cart” (really just “cart”) module allows users to add images to a standard cart.  Instead of just being able to buy images though, the cart can be used to allow images to be sent to one of the printing services or even downloaded as a single zip file. 
* “shopping cart” (其实是“cart”)模块允许用户将图片添加到一个标准的cart购物车中。该购物车被用来将图片发送到某个打印服务或以zip格式的文件形式下载下来。
* Another of the Google Summer of Code projects is a Zen module that uses the gallery cart.  Zen is an open source e-commerce application.
* Google Summer of Code项目之中有一个Zen模块使用的就是gallery cart购物车。Zen是一开源电子商务向的应用程序。


:''Which to choose?''  If you need email notification of changes, G1 is probably the choice for you.  If you read the paragraph on G2 features and thought to yourself “Wow, some of these are very interesting and useful!” then G2 should be your choice.
: ''选择哪个?''  如果你需要电子邮件通知特色的话,G1会比较适合你。如果你读了有关G2特点的文字,然后觉得“天,有些还真不赖的说!”的话,G2会是你的选择。


==Conclusion==
==结论==
:As you read this article, you might have noticed a bias toward G2 over G1.  I can’t deny it either, because after switching to G2 myself I am a convert.  If this article helped you decide, I am glad no matter what.  If you read the whole thing and still haven’t decided, I would strongly suggest G2.  It has more active developers and really is situated to take over the world, resistance is futile.  My name is Locutus and we are the Borg, prepare for assimilation.
:正如你所读到的,此文似乎偏袒G2一些。但就我个人经历而言,在转用G2之后还是觉得G2比较好。如果此文能帮助你作出选择的话我会十分开心。如果你读完全篇内容后还无法做出决定的话,我会强烈建议你使用G2。G2有更多积极的开发者并且具有无可辩驳的世界影响力,换句话说你无法抗拒它。我是Locutus,我们来自伯格星,准备好被我们同化吧!(入乡随俗吧……)


=Feature Chart=
=特点表单=
{| class="gallery" style="background-color: #eee; width: 560px"
{| class="gallery" style="background-color: #eee; width: 560px"
!Supported!!Gallery&nbsp;1!!Gallery&nbsp;2!!Notes
!支持!!Gallery&nbsp;1!!Gallery&nbsp;2!!注释
|-
|-
|Apache 1.x|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|Apache 1.x|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Apache 2.x|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|Apache 2.x|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|MS IIS 5+|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G1 doesn't officially support IIS, but it ''can'' work
|MS IIS 5+|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1不正式支持IIS,但''也能''运作
|-
|-
|Other WWW Servers (Zeus, etc)|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 and G2 run theoretically on any PHP enabled webserver
|其他WWW服务器(Zeus等)|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1和G2理论上可在任何PHP可用的web服务器上运行
|-
|-
|PHP 4.1.0+|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Gallery 2.2 will raise the minimum PHP version to 4.3.0
|PHP 4.1.0+|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||Gallery2.2会将最低的PHP版本提升至4.3.0
|-
|-
|PHP 5.0.4+|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|PHP 5.0.4+|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Database|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G1 can't use a DB, G2 requires either MySQL, PostgreSQL, Oracle or DB2
|数据库(DB)|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1无法使用DB,G2需要MySQL,PostgreSQL,Oracle或DB2的支持
|-
|-
|safe_mode '''*on*'''|| class="no" |<span class="hidden">No</span>|| class="no" |<span class="hidden">No</span>||See this [http://gallery.menalto.com/node/3017 thread] for a discussion
|safe_mode '''*on*'''|| class="no" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||参阅此[http://gallery.menalto.com/node/3017 ]的讨论内容
|-
|-
|exec() '''*disabled*'''|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G2 works with exec() disabled, but thumbs and resizes require GD compiled into PHP
|exec() '''*disabled*'''|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2可在exec()禁用时运行,但缩略图和重设尺寸图片需要编译到PHP中的GD
|-
|-
!'''Supported ToolKits'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!Notes
!'''支持的工具包'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!注释
|-
|-
|ImageMagick|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|ImageMagick|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|NetPBM|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|NetPBM|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|GD|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||GD can be built into PHP, useful for hosts where exec() is disabled
|GD|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||GD可被编译到PHP中,这在exec() 被禁用的host很管用
|-
|-
|GraphicsMagick|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|GraphicsMagick|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|dcraw|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Processes RAW format from many digital cameras
|dcraw|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||处理来自数码相机的RAW格式图片
|-
|-
|ffmpeg|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Processes many video formats
|ffmpeg|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||处理多种视频格式
|-
|-
|MPlayer|| class="free_add_on" |3rd Party|| class="free_add_on" |3rd Party||Processes even more video formats (e.g. WMV 9  aka wmv3)
|MPlayer|| class="free_add_on" |第三方|| class="free_add_on" |第三方||处理更多的书评格式(如WMV 9,也就是、wmv3)
|-
|-
|swf|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Detects the flash/shockwave animation dimensions on upload
|swf|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||在上传时检测flash/shockwave影像的规格尺寸
|-
|-
|id3|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|id3|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
!'''General Features'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''Note'''
!'''一般特点'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''注释'''
|-
|-
|Active Development|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|积极的开发|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Multi-User|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|多用户|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|User Registration|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|用户注册|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|New User Approval|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|新用户认可|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Bulk User Addition|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||Add a list of usernames from a CSV file
|批量用户添加|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||添加来自CSV文件的用户名列表
|-
|-
|Forgotten Password Recovery|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|密码恢复|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Usergroups|| class="yes" |<span class="hidden">YES</span>|| class="yes" |<span class="hidden">Yes</span>||G1 will have this feature in from 1.6 on
|用户组|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1自1.6版本以来就有此特点
|-
|-
|Install Wizard|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|安装向导|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Upgrade Wizard|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|升级向导|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Offline Mode|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||Offline mode is used for making a copy of the gallery that can be stored on a CD/DVD/HD using wget or httrack.  It is the HTML and images, with no dynamic content or links.
|离线模式|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||离线模式用于通过wget或httrack存储在CD/DVD/HD上的Gallery拷贝的。它是HTML及图片,没有动态内容或链接。
|-
|-
|Maintenance Mode|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Stop users from accessing your Gallery during a maintenance task
|维护模式|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||当执行维护任务时阻止用户访问你的Gallery
|-
|-
|Cart|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|Cart|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|E-Commerce|| class="no" |<span class="hidden">No</span>|| class="free_add_on" |3rd Party||G2: 3rd party module available and additional module developed, available after release of 2.0
|电子商务(E-Commerce)|| class="no" |<span class="hidden"></span>|| class="free_add_on" |第三方||G2:可用的第三方模块及经开发的额外模块,出现于2.0发布之后
|-
|-
|Search|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|搜索|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|URL Rewrite, mod_rewrite|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||For short URLs using Apache mod_rewrite
|URL重写,mod_rewrite|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||针对使用Apache mod_rewrite的短URL
|-
|-
|URL Rewrite, ISAPI Rewrite|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||For short URLs using IIS ISAPI Rewrite (G2.1)
|URL重写,ISAPI重写|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||针对使用IIS ISAPI重写(G2.1)的短URL
|-
|-
|URL Rewrite, PathInfo|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||For short URLs using PHP PathInfo (G2.1)
|URL重写,PathInfo|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||针对使用PHP PathInfo (G2.1)的短URL
|-
|-
|Flat Short URLs|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||G1 short URLs are always like /albumName/photoName.jpg, this comes at the price of unique album names
|平整短URL(Flat Short URL)|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||G1的短URL总是像这个样子: /albumName/photoName.jpg,这就需要相册名唯一
|-
|-
|Nested Short URLs|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G2 short URLs are always like /albumName/subAlbumName/photoName.jpg  
|巢式短URL(Nested Short URL)|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2的短URL总是像这个样子:/albumName/subAlbumName/photoName.jpg  
|-
|-
|Permalinks|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Short URLs that don't change when you move an item
|永久链接(Permalinks)|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||当你移动某项目时,短URL不会改变
|-
|-
|Short URLs for Other Features|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||For comments, slideshow, ...
|其他特点的短URL || class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||针对评论,幻灯片等
|-
|-
|RSS|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Available in G2.1
|RSS|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||在G2.1中可用
|-
|-
|Google Sitemap|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Available in G2.1
|Google站点地图|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||在G2.1中可用
|-
|-
|Multi-Language|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|多语言(Multi-Language)|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Per User / Session Language Selector|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|单位用户/对话的语言选择器|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Selectable Language-Packs|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Selectable in Admin -> Plugins (G2)
|可选的语言包|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||在Admin -> Plugins(G2)中可选
|-
|-
|Integratable|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|可整合性|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Multisite Support|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Run multiple G2 installations from a single codebase (good for ISPs)
|多站点支持|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||由单个代码库运行多个G2
|-
|-
|Module System|| class="free_add_on" |Patch|| class="yes" |<span class="hidden">Yes</span>||Extend the functionality with modules rather than with code hacking
|模块系统|| class="free_add_on" |Patch|| class="yes" |<span class="hidden"></span>||通过模块而不是代码来进行功能扩充
|-
|-
|Mirroring|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||
|Mirroring|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||
|-
|-
|Load Balancing|| class="no" |<span class="hidden">No</span>|| class="no" |<span class="hidden">No</span>||
|Load Balancing|| class="no" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||
|-
|-
|CDN Support|| class="no" |<span class="hidden">No</span>|| class="free_add_on" |3rd Party||Use a Content Distribution Network (Coral) to save server bandwidth (Hasn't been updated to work with G2.1 or up-coming G2.2)
|CDN支持|| class="no" |<span class="hidden"></span>|| class="free_add_on" |第三方||使用Content Distribution Network(Coral)来节省服务器带宽(尚未更新到可兼容G2.1或G2.2的版本)
|-
|-
|Upload Any Filetype|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G2 allows upload of any filetype and has a MIME Manager
|上传任意文件类型|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2允许上传任何文件类型并有一个MIME Manager
|-
|-
|Statistics|| class="yes" |<span class="hidden">Yes</span>|| class="free_add_on" |3rd Party||
|统计数据|| class="yes" |<span class="hidden"></span>|| class="free_add_on" |第三方||
|-
|-
|Meta-data Integrity Check|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||G1 has "find orphans", G2 doesn't have an integrity check yet
|元数据完整性检查|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||G1有"find orphans",而G2则尚无任何完整性检测机制
|-
|-
|System Files Integrity Check|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G2 checks system file integrity at install and upgrade.
|系统文件完整性检查|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2在安装和升级时检查系统文件的完整性。
|-
|-
|Automated Code Testing|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G2 has over 2200 unit tests
|自动化的代码测试|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2有超过2200项单元测试
|-
|-
|Guest Preview Mode|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Registered users in G2 can switch between normal and guest mode to see what guests would see
|游客预览模式|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2中的已注册用户可以转换到游客模式以查看游客可见内容
|-
|-
|Downloadable Plugins|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Modules and Themes.
|可下载插件|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||模块和外观主题。
|-
|-
|XML-RPC Remote Protocol|| class="no" |<span class="hidden">No</span>|| class="no" |<span class="hidden">No</span>||G2 support developed, available after release of 2.1
|XML-RPC远程协议|| class="no" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||G2支持被开发,在2.1发布之后可用
|-
|-
|Disk Quota|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Define how much webspace each user / group are allowed to use. Gallery 1 will have this from 1.6 on
|磁盘分区|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||定义各用户/用户组允许可用的web空间量。G1自1.6版本开始此特点可用
|-
|-
|Captcha|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Prove you're a human and not a bot when registering.
|Captcha|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||防止恶意的过滥机器注册行为。G1自1.6版本开始此特点可用
G1 will have this feature in from 1.6 on
|-
|-
|Members Module|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||See a list of all registered users, show items by owner
|会员模块|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||查看所有已注册用户的列表,显示拥有者的项目
|-
|-
|User Albums|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Each user receives automatically his own album
|用户相册|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||各用会自动接受自己的相册
|-
|-
|Album Navigation Block|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||A drop-down list or a DHTML menu to navigate through all albums
|相册导航区块|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||一下拉列表或以DHTML菜单供所有相册的导航浏览之用。
|-
|-
|New / Updated Items|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Mark new / updated items as such
|新的/已更新的项目|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||如此标记新的/已更新的项目
|-
|-
|Panorma Viewer|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Java Applet to view panorama photos
|全景图片查看器|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||Java小程序,用来查看全景模式的相片
|-
|-
|Image Block|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G2 has more image block types (newest, random, most viewed, ...) and has a GUI to use the block not only on external pages but in G2 pages too.
|图片区块(Image Block)|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2具有更多的图片区块类型(最新的,随机的,查看次数最多的),而其还具有的GUI不仅可以在外部页面中还可以在G2页面上使用这些区块。
|-
|-
|Thumbnail Manager|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Set the default thumbnail for non-image items
|缩略图管理器|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||设定非图片项目的默认缩略图
|-
|-
|Web-Standard Compliance|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 is HTML 4.01 Transitional, G2 is XHTML 1.0 Strict
|web标准的一致性|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1为HTML 4.01 Transitional,而G2为 XHTML 1.0 Strict
|-
|-
|Cross Browser Support|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 and G2 display and work correctly in most known web browsers for Windows, Linux and OSX
|跨浏览器支持|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1和G2在大多数windows,linux和OSX上可用的web浏览器中都可以正常显示及运行
|-
|-
|Import from Other Applications|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G2 can import from G1 and Picasa
|由其他应用程序导入|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2可以由G1和Picasa进行导入
|-
|-
|Error System|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G2 has an error handling system which allows to handle errors gracefully and trace the error back through the whole request.
|错误(处理)系统|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2 的错误处理系统能够合理地处理错误并根据此错误回溯到整个请求。
|-
|-
|Set Date Format|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Site wide, not per user
|设定日期格式|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||站点范围的,非单位用户的
|-
|-
|Set Server Timezone|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||If the server clock is set to another timezone than you wish, adjust Gallery's timezone (not per user)
|设定服务器时区|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||如果服务器时钟设为了其他非你所希望的时区的话,则可以对Gallery的时区进行调整
|-
|-
|Comment Quick-Reply Block|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||An add comment block right below the images instead of just a link to add comments.
|评论的快速回复区块|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||图片下方的添加评论区块而不是添加评论链接。
|-
|-
|DVD Authoring|| class="no" |<span class="hidden">no</span>|| class="free_add_on" |3rd Party||Create a DVD slideshow with G2 albums
|DVD刻录|| class="no" |<span class=“hidden”></span>|| class="free_add_on" |第三方||创建含有G2相册的DVD幻灯片
|-
|-
|ImageMaps|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">no</span>||Annotate areas of images
|ImageMaps|| class="yes" |<span class="hidden"></span>|| class="no" |<span class=“hidden”></span>||注解图片区域
|-
|-
|Geographical Maps|| class="no" |<span class="hidden">no</span>|| class="free_add_on" |3rd Party||Show interactive geographical maps to illustrate where your images were taken
|地理地图|| class="no" |<span class=“hidden”></span>|| class="free_add_on" |第三方||显示互动的地理地图以说明照片拍摄地点
|-
|-
|Puzzle Game|| class="no" |<span class="hidden">no</span>|| class="free_add_on" |3rd Party||Create puzzles from your images
|拼图游戏|| class="no" |<span class=“hidden”></span>|| class="free_add_on" |第三方||为你的图片创建拼图游戏


|-
|-
!'''Album &amp; Items'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''Notes'''
!'''相册 &amp; 项目'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''注释'''
|-
|-
|Title|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|标题|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Caption|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Called 'Summary' in G2
|标幅|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2中称之为'摘要'
|-
|-
|Keywords|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 adds the keywords additionally to the html meta tags of the page, which helps search engines
|关键词|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1额外地向html页面中继标记添加关键词,这对搜索引擎有所帮助
|-
|-
|Multilanguage Texts|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|多语言文本|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Custom Thumbnails|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 doesn't have a GUI for it though
|自定义缩略图|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1则没有相应的GUI
|-
|-
|Delete|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|删除|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Move|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|移动|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Hide|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Available in G2.1, photos are not visible from navigation, guests and users have to know the URL
|隐藏|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||在G2.1中可用,导航中相片不可见,用户及游客需要知道URL才可以查看
|-
|-
|Password Protection|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Available in G2.1 (Password protected items are complementary to user / group level permissions)
|密码保护|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||在G2.1中可用(受密码保护的项目是对用户/组层级权限的补充)
|-
|-
|Reorder|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Reorder a lot of items at once by clicking on thumbnails
|重新排序|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||点击缩略图同时对多个项目进行排序
|-
|-
|Change Notification|| class="yes" |<span class="hidden">Yes</span>|| class="free_add_on" |3rd Party||See this [http://gallery.menalto.com/node/29548 thread]
|修改通知|| class="yes" |<span class="hidden"></span>|| class="free_add_on" |第三方||参阅此[http://gallery.menalto.com/node/29548 ]
|-
|-
!'''Items'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''Notes'''
!'''项目'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''注释'''
|-
|-
|Description|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G2 supports different text next to thumbnail vs viewing the item
|描述|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2支持缩略图(相对项目查看)边上的不同文本
|-
|-
|Custom Fields|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|自定义字段|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Resize|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|重设尺寸|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Rotate|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|旋转|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Lossless Rotation|| class="yes" |<span class="hidden">Yes</span>|| class="free_add_on" |3rd Party||
|不失真旋转|| class="yes" |<span class="hidden"></span>|| class="free_add_on" |第三方||
|-
|-
|Auto-Rotate|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Auto-rotation based on sensors or settings saved to image by camera.
|自动旋转|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||基于相机图片设定及感应器的自动旋转。
|-
|-
|Crop|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||
|剪裁|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||
|-
|-
|Crop Thumbs|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|剪裁缩略图|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Square Thumbs|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Both support crop-to-square, G2 also has fit-to-square
|矩(方)形缩略图|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||都支持crop-to-square,而G2还具有fit-to-square
|-
|-
|Rename|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|重命名|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Copy|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||"Replica" Module in G2.2
|复制|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2.2中的"Replica"模块
|-
|-
|Link|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||(Removed in G2.2)
|链接|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||(在G2.2中被移除)
|-
|-
|Reupload|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Replace image without affecting caption/comments/etc
|重新上传|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||在不影响标幅/评论等的前提下替换图片
|-
|-
|User Comments|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 allows choosing an arbitrary username even if you're logged in
|用户评论|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1允许登入的情况下选择某任意用户名
|-
|-
|Voting / Rating|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|投票/评分|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Watermark|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 does permanently change the uploaded photo. Thus you can't revert watermarking, but you can add multiple watermarks to the same photo in G1.
|水印|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1的水印效果是永久性的,因此你无法为G1中的同一张相片添加多个水印效果。
|-
|-
|Watermark Hotlinked|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Requires the URL Rewrite module with the mod_rewrite or ISAPI Rewrite (G2.1) method.
|Watermark Hotlinked|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||需要带有mod_rewrite或ISAPI重写(G2.1)方法的URL重写模块。
|-
|-
|Block Hotlinking|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Requires the URL Rewrite module with the mod_rewrite or ISAPI Rewrite (G2.1) method.
|Block Hotlinking|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||需要带有mod_rewrite或ISAPI重写(G2.1)方法的URL重写模块。
|-
|-
|Permissions|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G1 permissions only at the album level
|权限|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1权限仅限于相册层级
|-
|-
|Image Firewall|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G2 permissions cannot be bypassed because *ALL* requests for images are handled by G2.  If ''g2data'' dir is '''not''' web-accessible, permissions bypassing is impossible.
|图片防火墙|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2权限无法被跳过,因为图片的*所有*请求是经G2处理的。如果''g2data'' dir为''''''web可访的话,绕开权限是不可能的。
|-
|-
|Auto Thumb Creation|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|自动缩略图创建|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Auto Resize Creation|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|自动重设尺寸图创建|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Embedded Movie Player|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|嵌入的电影播放器|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Thumbs for PDF / PS|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|PDF/PS的缩略图|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Thumbs for movies|| class="free_add_on" |3rd Party|| class="yes" |<span class="hidden">Yes</span>||
|电影缩略图|| class="free_add_on" |第三方|| class="yes" |<span class="hidden"></span>||
|-
|-
|Thumb Page|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Select Page / Frame from a multipage document / movie for the thumbnail
|缩略图页面|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||选择文档/电影的页面/某帧画面作为缩略图
|-
|-
|Thumbs for CMYK JPG/TIFF|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||G2 optionally checks for the colorspace and generates web-viewable (RGB) thumbnails
|CMYK JPG/TIFF的缩略图|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2可选地检查颜色空间并生成web可见的(RGB)缩略图
|-
|-
|Multiple intermediate resolutions per item|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|Multiple intermediate resolutions per item|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Max Full Size|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Define the maximal allowed dimensions and/or file size + automatic downsizing
|最大全尺寸|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||定义最大规格尺寸和/或文件尺寸+自动尺寸缩小
|-
|-
|E-Card|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|E-Card|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Mini Thumb Nav|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|迷你缩略图导航|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|EXIF|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|EXIF|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|IPTC|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|IPTC|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Upload Zip of Images|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|上传图片的zip包|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Upload Rar of Images|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||
|上传图片的rar包|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||
|-
|-
|Mass Edit|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 & G2 allow mass edit of captions, keywords and a few other items
|批量编辑|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1和G2允许标幅,关键词及一些其他项目的批量编辑
|-
|-
|Duplicate Image Detection|| class="no" |<span class="hidden">No</span>|| class="no" |<span class="hidden">No</span>||Development abandoned :(
|复制图片检测|| class="no" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||开发被取消:(
|-
|-
!'''Albums'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''Notes'''
!'''相册'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''注释'''
|-
|-
|Description|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|描述|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Sub-albums|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Unlimited number of nesting levels
|子相册|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||不限数的nesting层级
|-
|-
|Slideshow|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|幻灯片|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Dynamic Albums|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Dynamically generated albums based on some criteria, e.g. show an album of most viewed items.
|动态相册|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||按某些准则动态生成相册,如显示访问量最高的项目的相册。
|-
|-
|Rename|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|重命名|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Move|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|移动|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Link|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|链接|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Permissions|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|权限|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|User Comments|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|用户评论|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Custom Fields|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|自定义字段|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Download Zip of Images|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|下载图片Zip包|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Random Highlight|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Periodically change the album thumbnail
|随机高亮|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||周期性地改变相册缩略图
|-
|-
!'''Upload'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''Notes'''
!'''上传'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''注释'''
|-
|-
|HTML Form|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|HTML Form|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Java Mini-Applet|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|Java迷你小程序|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Gallery Remote|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|Gallery Remote|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Built in XP|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|内置XP|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|From Local Dir|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G2 has a built in path auto-completion, directory browser and adds directories (albums) recursively and with symlink option
|自Local Dir|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G2具有内置的路径自动完成,目录浏览器及递归式目录(相册)添加以及symlink选项
|-
|-
|From Remote URL|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|自远程URL || class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|WebDAV|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Drag'n'Drop Files on your Desktop to G2 as a network drive.
|WebDAV|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||拖放桌面上的文件至G2。
|-
|-
|Static URL (webcam)|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|静态URL(webcam)|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|From CMD Line|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 & G2 support from galleryadd.pl and g2add.pl, respectively
|自CMD Line|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1和G2分别支持galleryadd.pl和g2add.pl
|-
|-
|From Nokia Phone|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Another, more general G2 MMS module is in development
|自Nokia手机|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||另一个G2 MMS模块在开发中
|-
|-
|Upload Approval|| class="no" |<span class="hidden">No</span>|| class="free_add_on" |3rd Party||See [http://gallery.menalto.com/node/48148 thread]
|上传确认|| class="no" |<span class="hidden"></span>|| class="free_add_on" |第三方||参见此[http://gallery.menalto.com/node/48148 ]
|-
|-
|Multiple Uploads|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|多上传|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Import Captions when Uploading|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||G1 allows specifying an additional CSV file to import image captions, descriptions, etc.
|在上传时导入标题|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||G1允许定义额外的CSV文件来导入图片标幅及描述等
|-
|-
|Picasa|| class="no" |<span class="hidden">No</span>||  class="yes" |<span class="hidden">Yes</span>||
|Picasa|| class="no" |<span class="hidden"></span>||  class="yes" |<span class="hidden"></span>||
|-
|-
|iPhoto|| class="yes" |<span class="hidden">Yes</span>|| class="yes" | <span class="hidden">Yes</span>||[[http://zwily.com/iphoto/ iphoto2Gallery]] supports both versions.
|iPhoto|| class="yes" |<span class="hidden"></span>|| class="yes" | <span class="hidden"></span>||[[http://zwily.com/iphoto/ iphoto2Gallery]]两者都支持。
|-
|-
!'''Customization of the Look'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''Notes'''
!'''外观自定义'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''注释'''
|-
|-
|Themes|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 calls them skins and G2 is much more powerful and userfriendly in that respect
|外观主题|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1称之为皮肤,而G2在这方面则更强大而且更具用户向
|-
|-
|Theme per Album|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|各相册外观主题|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Total Control over all Templates|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|对所有模板的完全控制|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Icons|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|图标|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Icon Packs|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Select from different icon packs or create your own
|图标包|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||选取不同的图标包并创建自己的图标
|-
|-
|Color Packs|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1: define a few colors globally and per album. G2: Select from different color packs or create your own, also per album and globally
|颜色包|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1:按相册全局性定义一些颜色。G2:选取不同的颜色包并自我创新,同样是按相册全局性地进行定义
|-
|-
|Block System|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||Arrange and configure available blocks (comments, random images, ...) in your theme with a GUI
|区块系统|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||使用GUI在外观主题中整理并配置可用区块(评论,随机图片等)
|-
|-
|Image/Album Frames|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|图片/相册框|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
!'''Sorting'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''Notes'''
!'''排序'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''注释'''
|-
|-
|By Manual Sort Order|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|按人工排序的次序|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|By Title|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 calls it "By Caption"
|按标题|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1称之为"按标幅"
|-
|-
|By Summary|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|按摘要|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|By Description|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|按描述|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|By Name|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 calls it "By Filename"
|按名称|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1称之为"按文件名"
|-
|-
|By Keywords|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|按关键词|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|By Origination Date|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 calls it "Picture-Taken Date"
|按起始日期|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1称之为"拍照日期"
|-
|-
|By Creation Date|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 calls it "Upload Date"
|按创建日期|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1称之为"上传日期"
|-
|-
|By Last Changed Date|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|按上次修改的日期|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|By View Count|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||G1 calls it "By Number of Clicks"
|按查看次数|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||G1称之为"按点击数"
|-
|-
|By Comment Count|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||
|按评论数|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||
|-
|-
|Random Sort|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|随机排序|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Ascending / Descending|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Option for each sort criterion
|升序/降序|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||各排序准则的可选项
|-
|-
|Albums First Presort|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||Gallery 1 does this on manual resort, G2 can do this automatically.
|相册首次预排序|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||Gallery1需要手动预排序,而G2则可以自动完成。
|-
|-
|Most Viewed First Presort|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|查看最多的首次预排序|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|New Items First Presort|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|新项目的首次预排序|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
!'''Print Services'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''Notes'''
!'''打印服务'''!!'''Gallery&nbsp;1'''!!'''Gallery&nbsp;2'''!!'''注释'''
|-
|-
|Shutterfly|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|Shutterfly|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|PhotoWorks|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|PhotoWorks|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|Fotoserve.com|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||
|Fotoserve.com|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||
|-
|-
|Fotokasten|| class="yes" |<span class="hidden">Yes</span>|| class="yes" |<span class="hidden">Yes</span>||
|Fotokasten|| class="yes" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|mPUSH|| class="yes" |<span class="hidden">Yes</span>|| class="no" |<span class="hidden">No</span>||
|mPUSH|| class="yes" |<span class="hidden"></span>|| class="no" |<span class="hidden"></span>||
|-
|-
|Digibug|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|Digibug|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|-
|-
|SnapGalaxy|| class="no" |<span class="hidden">No</span>|| class="yes" |<span class="hidden">Yes</span>||
|SnapGalaxy|| class="no" |<span class="hidden"></span>|| class="yes" |<span class="hidden"></span>||
|}
|}


=Comparisons by Others=
=与其他程序的比较=
[http://www.gallery-addons.com/Gallery-Addons/Component/Media_Gallery_Feature_Comparison/ G1, G2, CM & Others Comparison Chart], [http://www.cpzhao.com/web/comparing-gallery2-and-coppermine-2.html G2 vs. CM (old)]
[http://www.gallery-addons.com/Gallery-Addons/Component/Media_Gallery_Feature_Comparison/ G1,G2,CM及其他的比较][http://www.cpzhao.com/web/comparing-gallery2-and-coppermine-2.html G2对CM(旧)]


[[Category:Gallery|Comparison, G1 vs G2]]
[[Category:Gallery|Comparison, G1 vs G2]]

2008年10月19日 (日) 20:41的最新版本

死斗擂台赛:Gallery1对阵Gallery2[ ]

介绍[ ]

此文目前应即将发布的G2.2做了适当的调整。在此文早些时候的编辑中包含有G2.1中添加的特点,当然还包括原始的G2.0版本。G2.2添加了一些简洁的特点,其中我认为最棒的是"可下载插件(downloadable plugins)"特点。它允许你直接由G2内部进行*新*插件的下载,而无需使用FTP瞎捣鼓了。
由于Gallery1和Gallery2的并存,你可能就要发问了。该文比较了两者,将二者的不同之处,相似之处,优点及弊端都揭示给读者。这将帮助你选择最适合的一款,同时也给出了建议,并确保你在决定之前,能够获取尽可能多的信息。最好的出发点就是简要地介绍两个产品,这样你就能先对二者做个基本的了解了。
Gallery1和2均为基于web的相片相册软件,由PHP编成。这意味着二者都应依托web服务器,一般是在托管的环境下。它们使用的接口为完全基于web的,这样一来上传,维护和显示图片都更为简单。它们皆使用特定的外部程序进行缩略图和自定尺寸图片的创建,而且它们是在分层文件夹中进行组织的,点击图片的缩略图之后就会转到对应的较大尺寸的图片。主要特点中的一部分为:多用户的,基于web的,高度自动化,灵活多变并且面向用户。

安装[ ]

G1和G2的初始安装步骤都很相似。你需要从gallery站点获取 “代码”,进行解压,上传到你的站点并运行安装向导。你可能需要安装某些图片操作二进制,但很可能你的托管服务提供商已经为你准备好了,这能节省不少时间。随着安装的深入,步骤也越发不同了,G1的安装非常复杂并且牵涉到很多选项。 G2的安装则简化了不少,配置选项尽可能地被压缩到最小的数目,但你得提供一些数据库信息,G1则没有对此做要求。
G2.1版本在已有的安装程序中做了改良。这些改良主要是可视化及可用性方面的修改,这些改良是在OpenUsability的调查研究之后作出的。
如果你有自己的服务器,且只安装了最基本的东西(Apache,PHP,MySQL)的话,事情就有点难办了。大部分的服务器distribution使得这些应用程序的安装极快,然而有些瑕疵能够修复却很难弄明白。对于初学者而言,MySQL足以让他们想破脑瓜了。
该选择哪一个呢? 因为G2具有更简单且更直观的安装程序,因此我觉得它是首选。但是如果你更像自己制定更多的变量的话,G1可能会更合你的口味。如果你只是略通皮毛的话,G1不对MySQL做要求的优势就体现出来了,因为MySQL对于初学者而言就是恶梦。

数据库对文件元数据存储[ ]

G1和G2之间主要区别是“元数据”(评论,标题,描述以及关键词等)是如何保留及维护的。Gallery1使用的是基于文件的方法而G2使用数据库的方法。这可能不明显,但它们都具有各自的优势和缺陷,所以在你作出选择之前要好好考量一下。首先,如果你的托管服务提供商无法提供数据库选项(如MySQL)的话,那你只有两条路可选了:使用Gallery1或换个host。
将元数据存储在某个文件中更简单,且对较小的gallery来说更快速。它对资源的要求也更低,因此相对地在低端或较旧的服务器上也能更好地运行。当然它也有缺点。随着G1容量的增多,它会用掉更多的内存(RAM)以完成某些操作。平均下来,G1的5000张图片就该封顶了。当然也有站点能够轻松地托管多余该数字的图片,但寿命大大降低了。
将元数据保留在数据库中利弊皆有。最大的优势就是可扩展性;G2应当能够无区别地保留5张,10张,100张或100万张的相片,而性能方面并不会因照片数量受太大影响。当然其他方面制约着相片数量的上限,但理论上来说,这个上限不小,或者说很大。为了证明这一点,care2 connect站点是基于较早期Gallery的alpha版本上的,并且保留有超过90万张图片(而且可能有超过5000名用户)。数据库驱动的确有劣势,如果要以指定好长度的时间来载入“framework”以处理数据库的话,那么较小的gallery可能无法看到优势所在,甚至会花费更多的时间。一个基于文件的系统打开10张相片的相册可能花费0.1秒,但数据库系统指定的读取时间是0.5秒,那么打开10张相片相册的速度显然大于0.1秒,也就是多花了时间。当然,该基于文件的系统可能需要10秒来打开含有1000张图片的相册,当读取1万张图片的相册时就会崩溃。
选择哪个? 如果你的Gallery内容很多的话,必然要选择G2了。如果你的gallery内容很少(并一直保持很少),并且依托较低端的硬件的话,那么选择起来就比较困难了。G1可能会比较管用,但跟G2的灵活性和强大的功能比起来就相形见绌了。在这种情况下,我会建议对二者都做个尝试,然后再选取你最中意的来使用。


缩略图,重设尺寸图片及全尺寸图片[ ]

G1和G2都支持玩家定义缩略图,重设尺寸图片及全尺寸图片。G2允许定义多个重设尺寸图片,某种意义上来说很有用。G1和G2都允许你指定图片的某个部分用于缩略图,该可定制性也十分诱人。G2更进一步地允许你上传自定义的图片,并将其用于特定项目的缩略图。G2还具有的矩(方)形缩略图模块会自动制作矩(方)形缩略图(建材为方形宽高比或按比例填充到方形区域中)。crop-to-square的特点也可通过修改成为G1的特点,但不是独一无二的了。G1和G2都允许用户选择某最大的文件尺寸或规格尺寸,这能有效地对图片占用空间进行限制。G1和G2(自G2.2版本)都支持自动旋转(auto-rotation)。如果你的相机具有方向感应器或旋转按钮的话,那么G1和G2都会自动正确地调整相片的方向。
G1和G2的图片格式支持范围都很大,但G2在这方面更胜一筹,它还支持PSD,PDF和TIFF一类的格式。G2还能更轻松地处理非图片/电影文件类型,允许为不同文件类型自定义缩略图并且允许进行上传。
选择哪个? 因为较之G1,G2支持更多的图片格式而且G2.2以后的版本还支持自动旋转,所以G2不失为一个好的选择。G1只是略逊一筹罢了。

图片工具包[ ]

Gallery1和Gallery2在这个方面相当相似,因此只进行简略叙述。它们都支持NetPBMImageMagick—二者都是很流行的开源图片处理工具,用于创建缩略图和定义尺寸的图片。G1也可经修改以支持ffmpeg。而Gallery2则更先进一点,同时支持GD,dcraw和ffmpeg。GD是一个图片处理程序,常以PHP构建;dcraw能够转换来自诸多数码相机份的RAW格式图片;而最令人激赏的则是ffmpeg了,它允许创建各种视频格式的缩略图。对,你可以上传一个视频并可将其中任意一帧画面作为缩略图。Gallery2通过自身的模块系统能够更轻松地支持不同的工具,这就使得将来的扩充更为简便。另一G2所带来的优势就是所有图片工具包可同时处于活动状态。这就意味着按照某种次序,GD,IM和NetPBM可以同时使用。在大多数情况下,这将提供图片格式更广的支持范围。
G1和G2都支持EXIF数据,这对大多数相机用户来说至关重要,因为它会存储有关设定,日期及图片其他方面的细节信息。G2更进一步地支持IPTC,这是另一用于图片内嵌信息的系统。
选择哪个? 在这方面,G1可以说甘拜下风了。G2无需执行二进制就可以达成这些目的,GD的选用,IPTC数据的使用,简便的视频缩略图以及RAW格式图片的处理都无疑印证了这一点。

权限系统[ ]

Gallery1和2都具有庞大的权限系统。它们允许你指定相册拥有者(赋予他们所有控制权),拥有者可以查看图片,上传图片,发表评论等等。用户组也是G2的一大特色了,它使得大量用户的管理变得更加简单。遗憾的是,G2权限的用户界面不是很直观,尽管它比G1要更强大并且提供更好的支持,但唯独这一点让人觉得遗憾。不过这个问题已经放到了已知问题处理日程中了,将来肯定会得到解决。G1和G2都支持"隐藏的"项目,这指的是图片或相册仅当用户访问URL目录或具有足够查看权限时才表现为可见。G2还有受密码保护的相册,这样对图片访问权的限制就更加简单了,而且相对来说共享起来也不是问题。
有关权限,G1和G2之间有一个很大的区别。要让G1运作,你的图片目录必须为公共网络可访的。这意味着所有人都可以直接查看图片,只要能猜中你的图片文件名或目录名称就可以直接查看了。这可以通过某些手段加以限制,但并非总是可行的。
在G2中,图片目录(应当)被存储于web根目录之外。这意味着如果你的站点位于目录/domain.com/htdocs/中的话,你就可以将G2图片存储在/domain.com/g2data/中,这里是无法通过网络进行访问的。所有图片都可直接通过G2框架进行访问,这就使得非网络可访的图片目录无法通过绕行进行访问了。
选择哪个? 如果你觉得G2的权限UI较为复杂的话,可以使用G1。但如果你希望图片能够完全通过你所设定的权限得到足够保护,或者你需要管理大批用户的话,G2无疑是你的选择。如果你不介意G2可能迟来的较好的权限UI的话,就选择G2吧。

外观主题[ ]

G1和G2都提供外观主题系统,这将允许用户自定义gallery的外观效果。在G1中,这仅限于颜色的自定义以及相当受限的外观种类。大部分的G1外观主题看起来大同小异,主要区别只是颜色,字体和修饰,而总体布局基本相同。G2则成为了鲜明的对比,可谓层出不穷的外观主题集合体。G2所带有的大量外观主题都各不相同,而其中蕴含的变数是无穷尽的。如果有时间,有技术并且有点胆识的话,你完全可以将G2模仿成任何你见过的相片相册系统。你甚至可以打造自己独一无二从未见过的G2相片相册系统。这都要归功于G2极为灵活的外观主题系统。其中有不少外观主题都被开发为Google Summer of Code的一部分,并且某个外观主题竞赛也在筹划之中。某种意义上说,G2的外观主题世界可谓各种爆料之所在。
外观主题及其设定最大的问题已在G2.1版本中解决。现在所有的外观主题都可以被沿用,这样对外观主题所作的更改就能简单地应用到相关联的相册了。G2.2支持递归式的水印效果添加,这无疑是如虎添翼。
选择哪个? 这里只有一种选择,毫无疑问的一种选择:G2的外观主题更加吸引人也更加灵活,因此想选G1还真得有点勇气。

整合[ ]

G1和G2都支持与相当数量基于web的软件某种程度上的整合--从简单的图片链接到用户共享以及难辨的布局。由于牵涉到的内容太多,因此要花费很多时间进行细节上的讨论。如果你要在G1和G2中进行选择的话,最好看看自己比较偏好哪种整合并看看支持得如何。某些提供G1或G2的整合包有WordPress,phpBB2,Mambo (Joomla),PHPNuke,Invision Board,Drupal,PostNuke以及vBulletin。 可用G2整合列表
另一对熟练开发者的显示问题就是,G2编写时是将整合这一块作为考量范围的。如果你需要从头开始的话,G2包含有的API允许进行用户同步等等的项目。G2理论上可以满足你所有的需求,而不仅仅是纸上谈兵的比划比划而已。
选择哪个? 在这种情况下,我会首先检查G1和G2整合的状况,而如果这是你作出决定的条件的话,请选择具有更高级整合的那一个吧。还有,G2整合会更好地与其他飞速发展中的程序兼容。如果你是一位开发者,而且需要从皮毛开始学习编写自己的整合的话,G2会是一条不错的途径。

上传[ ]

对你的gallery用户来说,向G1和G2上传图片的方法将成为最受重视的一方面。如果它难以使用或很怪异的话,人们就会抱怨。幸运的是,女性接受因素(Wife Acceptance Factor (WAF) )由于上传可用选项的数量而显得较为乐观。
G1和G2都支持HTML形式的上传,用户可以点击浏览按钮,找到希望上传的文件,选中并开始上传。对少量的图片,此操作很简单,但图片数量达到一定程度时,此过程就显得很繁冗了。这就是他们还提供一个在上传页面进行载入的Java迷你小程序的原因了。上传过程很简单,如同由某个file explorer shell拖取图片至java小程序并进行上传一样简单。还有“添加照片(Add Pictures)”按钮,它会弹出熟悉的文件选取框,与仅允许单个选取不同的是,它允许进行多选。最后具有较高WAF的上传方法是内置的Windows XP上传。点击下载并安装提供给gallery的注册表文件即可。现在在XP中你就有了一个基于context的边栏了,它允许你直接由shell上传任意数量的图片。
接着来看看更加高端的上传方法,如高度成熟基于java的Gallery Remote(与Java迷你小程序相似但更大),自某个本地服务器及某个URL进行上传。完整的Java小程序Gallery Remote是一个运行于客户端计算机上的独立应用程序,它允许你以多种方式与gallery进行交互,其中包括相片上传。当与KDE使用时,Gallery Remote提供拖放式的文件上传,这对Linux和*BSD用户来说是很有吸引力的。自本地服务器上传允许你提供文件系统的某个路径,在这个路径下可以找到文件,或者之前就已经FTP上传过了。自web页面上传的方法很有趣,很多人都在关注。如果你提供某图片文件的路径,它就会将其下载下来并添加到你的相册中;但是如果你提供的是某html文件(或目录)的路径的话,它就会解析你所提供的html并找到所有图片的参照,接着提供给你一个列表以从中进行选取。可谓很有用处!G2的本地文件上传超越了G1,其可以选取某个要上传的目录,而整个目录树会被重新创建为某个相册结构,带有所有添加于目录中的文件,并将该结构映射到磁盘上。
G2多增加的一个方法可能不可以完全看作上传方法,但为了完整起见在此提一下。该方法就是webcam特点,它允许你输入某个URL,而该URL会按照你设定的间隔定期刷新。因此,如果你将其指向一个webcam的话,它就会在该下载时进行下载,而不止一次。有趣但不够成熟的webcam系统同样也寄托了不少人的期望。
G2还能够直接从Nokia数码拍照手机上传图片。还有一些模块及工具,比如Picasa导入器以及iPhoto的插件(两者尚未与G2进行捆绑)以及scripts galleryadd.pl和g2add.pl(几乎是相同的脚本,但前者是针对G1的,后者是针对G2的),二者都可以本地或远程使用。
选择哪个? 在这种情况下,因为G1和G2共享了基础特点,而G2则带来了稍多些的内容,所以我认为选G2会比较好。但它们在这方面可谓势均力敌,因此选择G1也不会有什么不对。

水印[ ]

对于很多人来说,线上的相片展示离不开这一块儿。由于很难保证某张相片不会被别人“剽窃”,而且这可是真格的开放式的展示;因此最好的保护手段就是给图片添加水印效果。G1和G2都支持水印效果,它们都能够应用户的需要可选地为缩略图,设定尺寸的图片以及全尺寸图片添加水印效果。G2在这方面也略胜一筹。使用G1,如果你为全尺寸图片添加了水印,那么该效果就会直接应用于全尺寸图片而且是永久性的。而在G2中,水印效果是被应用于图片拷贝的,这样就可以关闭水印效果,使得将来修改水印效果并用于其他项目成为可能。这里指的其他项目中包括仅为hotlinked(热链的)图片添加水印效果。这意味着,如果某人访问了你的网站,所有的图片都不会带有水印效果或仅你选择的图片带有水印效果(可能是某某某版权所有一类的字样)。稍后,如果该访问者选择了你的图片链接并将其放在自己的网站中时,水印效果就体现出来了,可以是“该图片来自domain.com。”。这也是hot linking比较不错且有意思的解决办法了!
G1和G2都支持上传时的水印添加,但仅通过HTML的形式。如果你使用的是基于java的小程序,那么水印效果就不会被应用。只要将图片所在的整个相册都打上水印效果就能解决此问题了(自G2的2.2版本开始及G1)。
选择哪个? 在这种情况下,G2会比较好(自G2.2以来的版本;之前的G2版本不支持递归式的水印添加)。G2支持如此有趣的水印特色,但使用起来却很难。G1的水印特色使用起来很简单,但它们仅限于原始图片而这种局限性对原始图片来说是毁灭性的(无法恢复或取消)。如果使用G1的话,请不要为全尺寸图片添加水印效果,这样当你进行迁移的时候,G2就能够拷贝出一套干净不带水印效果的图片了。

投票/推选/评分[ ]

G1和G2.1都以某种方式支持评分系统。G1的评分机制更加灵活,并且能够自定名称及推选/投票的类型。G1评分系统的不足之处就是没有G2具有吸引力。G2的评分系统与netflix非常相似,带有5颗星星而星星的颜色则用来显示平均分*及*你打的分数。它还包括投票数量并能*可选地*将平均投票显示为一个小条。因为G2的评分系统使用了图形,因此能更好地融合到你的网站中去。
选择哪个? 如果你偏好自定性强且美观的评分系统的话,G2更好些。如果你需要用户可定的评分及推选机制的话,G1能满足你的需求。

菜单语言[ ]

G1和G2都完全支持菜单和导航项目中的其他(备用可选的)语言。G1具有庞大的可用语言集,翻译度很高而且随时可用。G2相对来说在这方面就要差一点了。仅有少数语言的完全翻译版本,有相当一部分只是部分翻译了,还有很多语言几乎没有翻译版本。这是有关 G2翻译的完整列表。浏览http://example.com/gallery2/lib/tools/reports/localization.php(可在G2的开发者整合包中找到)来看看各语言翻译的完成度。幸运的是,完成这些翻译只要通英语并掌握自己的母语再稍微有点时间就够了。或许你能帮助我们?
选择哪个? 如果你确实需要你所使用语言的gallery,而不幸的是没有该语言版本的话,那就得用G1了。如果你需要的翻译版本正好是少数4到5个翻译度极高的G2版本的话,选择G2没错。如果你能抽点时间帮助我们翻译的话,请翻译好了以后提交给我们!

多语言相册[ ]

G1和G2之间最重要的区别是相册的多语言支持。在G1中,我竭尽全力地想要平衡显示的美学感,并且要让我的汉语用户及英语用户同时觉得惬意。我的解决办法是使用两种语言创建真正精确的标题并显示在相同的页面上。在G2中,你可以创建使用各语言的标题,描述以及其他文本。某语言的用户不会看到你用其他语言创建的文本。
微妙的区别也会对多语言支持的实用性造成冲击。在G1中,默认仅包含英语。你所添加的各个额外的语言模块将会在语言下拉框中以额外选项的形式显示。在G2中,默认包括所有可用语言(至少"完全安装"是这样),因此下拉框中总是挤满了各种语言选项。无明显可用的方法以移除任何已安装的语言。因此,如果你的gallery仅用来支持英语和汉语的话,那么用户需要费事地找到其他支持的语言—而用户无法确知你所希望支持的语言是哪个或哪些。
假定gallery的默认语言是中文,某法国用户会选择法语作为可选的备用语言。现在该用户会看到所有菜单的项目变成了法语,但是所有标题及描述仍是中文。如果该用户也认英文的话,他(她)就可以通过转为英文来获取更多的信息了,但在这种境况下尝试使用英文还是不太可能。更糟的是,该用户冒险尝试了英国英语但仍得到中文标题及描述。他(她)就没那个勇气再去尝试其他语言了,因此你提供的美式英语下的信息完全就是浪费。
另一微妙的区别也可影响多语言支持的实用性。在G1中,用户可以选择某模糊的URL来强制某语言的选择;这在G2中行不通。所以在G1中,你可以使用一明确的URL声明不同语言下的gallery或相册,这确保了观者能够看到在声明中所使用语言的URL。这在G2中也不行。
选择哪个? 如果你想要真正的多语言支持,毫无疑问选择是G2。然而如果仅希望添加个别少数语言中的相册信息的话,你的努力很有可能因繁冗的语言下拉列表而付之东流。你还无法向使用不同语言的用户声明一个方便的URL。

相片打印服务[ ]

G1和G2提供的内置功能可以将图片发送至某个在线相片处理设备,但G1提供的更多。目前G1和G2都提供PhotoAccess,Shutterfly和Fotokasten的服务。Fotokasten提供的服务包括欧洲国家,这对某些用户来说很重要。G1还提供Fotoserve以及名为mPUSH的服务,它允许将缩略图发送至手机。走运的是,G2的模块系统使得新服务的添加更加简单,甚至某项服务能够引导某个模块的开发以吸引更多的商机。说到这里,"Digibug"服务就开发了他们自己的模块,该模块包括在了G2.2中。该模块很有趣,因为它*要求*站点拥有者使用他们进行注册并允许站点拥有者设定自己详细的价位。最新添加到Gallery2打印模块列表的是SnapGalaxy – 他们提供本地(美国和印度)以及全球范围的发货。
选择哪个? 自G2.2(也可能是G2.1)发布以来,G1和G2中的相片打印服务数量基本持平。如果你相中了G2的Digibug极具灵活性服务的话,G2会是你的归宿。

硬件[ ]

对于很多人来说,这不会成为顾虑,因为他们都在一个共享的托管环境中,因为他们都不了解硬件状况或进行能效选择。与个人相比,付费的共享托管环境很有可能具有更加强大的服务器,但他们的负载也因数量不菲的用户而相对较高。在此想清楚地探讨这个问题不是很容易,因为有很多变量需要考虑进来。但在开始前我们先总述一下:G1比较适合"低端"的硬件。当然,随着系统不断强大起来二者的工作状态均会好起来。
任何系统的两个主要方面都是CPU速度及RAM容量。一般说来,由于G1针对元数据使用的是基于文件的系统,因此随着gallery相册相片数量的增长,你会需要越来越多的内存。G1中对内存增长方面有需求的是search,stats和block random特点。图片和相册的移动也会导致较高的RAM使用量,尤其是处理很多子目录时。原因是,它需要通过解析大量的需要存储在内存中的数据文件从而在内存中建立子相册列表。G1需要使用CPU的仅有的主要一点就是缩略图的建立及尺寸重设,但实际上你不会过于关切着一块。
G2在具有较低RAM的环境中的表现更好些,因为数据库后端完成所有的统计数据呈现的工作,*而*这正是数据库的职责所在。G2由CPU速度的受益将更多,主要原因就是数据库和大量php代码会需要。G2还可实时创建缩略图/重设尺寸图片(也可以在上传时),因此某相册或重设尺寸图的*初次*载入会花费较长时间,因为G2创建缩略图或重设尺寸图片,因此CPU速度在这里起到了关键性的影响。
在此看看一些数据吧,但切记这些数据只是概况,你们所得到的结果会有所不同。我认为低于~800MHz,~256Mb RAM 可看作"低端",而~800MHz - ~1.5GHz,512Mb RAM可看作"中等水平",~1.5GHz+ ,1Gb+ RAM 可看作"高端"。这些只是粗略的估计。实际的工作量需求在你实际使用时才会慢慢明晰起来。G1和G2在这些规格的系统上应该都可以运行,但G1会比较倾向于低端。在中等水平的系统上,这些多取决于你的特定要求,而在高端系统中,你几乎不会发现G1与G2的有多大的差别。
选择哪个? 如果你的系统的确比较低端的话,绝大多数时候G1会是你的所想。安装一个如eAccelerator 的php加速器会对所有系统有提升。两者都可以试试,如果其中某个超越了另一个,就选择较好的吧。请记住G2对于庞大数量的图片和用户具有很好的延展性,无需更多的RAM支持,但G1在这方面有时可就够呛了。

杂项[ ]

该部分包含某些难以进行分类的项目或者某些难以自成一体的项目。这些特点多为G1可能含有而G2不含有的有趣特点,反之亦然。
G1具有而G2没有的主要的无法自成一类的特点就是电子邮件通知。而在G2一方来看,则有更多。主要是模块系统令G2更加灵活。很多新点子都可以被开发为模块,而将其用于G2也不是很费神--只要将模块解压到模块目录下并通过web界面将其开启即可。G1还带有RSS feed支持的特色,这没有被包括在目前最新的G2版本中,但Google Summer of Code项目进展得很顺利也许稍后就可以使用了(我已经安装了!)。
这些独一无二的模块包括有captcha,maps,quotas,user albums,shopping cart,zip download和random highlights。
  • Captcha使用扭曲的字母图片来对用户进行验证,防止恶意的机器注册行为。这被用于注册中,比如当某用户视图通过某错误密码尝试登录过多次的情况,并且用于防止恶意的匿名评论。
  • Maps模块从你的图片(如果你的相机支持的话)抽取GPS 坐标并显示一个互动的(Google)地图,其中含有相应图片拍摄地点的信息。
  • Quotas允许你限制某用户的空间使用量,可同时针对单位用户及单位用户组。
  • User albums则是为Gallery各用户自动创建相册。如果你通常为每个用户都分配一个相册的话,该模块即可轻松地向gallery中添加新用户。
  • “shopping cart” (其实是“cart”)模块允许用户将图片添加到一个标准的cart购物车中。该购物车被用来将图片发送到某个打印服务或以zip格式的文件形式下载下来。
  • Google Summer of Code项目之中有一个Zen模块使用的就是gallery cart购物车。Zen是一开源电子商务向的应用程序。
选择哪个? 如果你需要电子邮件通知特色的话,G1会比较适合你。如果你读了有关G2特点的文字,然后觉得“天,有些还真不赖的说!”的话,G2会是你的选择。

结论[ ]

正如你所读到的,此文似乎偏袒G2一些。但就我个人经历而言,在转用G2之后还是觉得G2比较好。如果此文能帮助你作出选择的话我会十分开心。如果你读完全篇内容后还无法做出决定的话,我会强烈建议你使用G2。G2有更多积极的开发者并且具有无可辩驳的世界影响力,换句话说你无法抗拒它。我是Locutus,我们来自伯格星,准备好被我们同化吧!(入乡随俗吧……)

特点表单[ ]

与其他程序的比较[ ]

G1,G2,CM及其他的比较G2对CM(旧)