编辑“Gallery:模块:水印

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

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

最后版本 您的文本
第1行: 第1行:
= 水印模块(Watermark Module) =
= Watermark Module =
在你的图片上使用水印。
Applies watermarks to your images.


== 描述 ==
== Description ==
可以为图片使用水印效果。需要一处于激活状态的图形工具包来达成对图片的操作(imagemagick,netpbm或gd)。
Ability to apply watermarks on images.  Requires an active graphics toolkit to actually perform the image operations (imagemagick, netpbm or gd).


=== 特点 ===
=== Features ===
* 个人用户可以在''你的帐户(Your Account'' -> ''水印(Watermarks)''中对他们的水印图片进行管理。
* Individual users can manage their own watermark images in ''Your Account'' -> ''Watermarks''
* 在站点管理中对所有用户可用的水印图片进行配置。
* Configure watermark images available to all users in site admin.
* 站点管理员也可以选择某个水印图片用于热链图片(直接由其他网站进行链接).. 在站点管理->水印中选择要使用的水印之后,此特点必须在URL重写模块中被激活。
* Site admin can also select a watermark image to apply to hotlinked images (linked directly from other websites).. this feature must be activated in the URL Rewrite module after selecting which watermark to use in site admin -> watermarks.
* 要使用的水印可在添加新图片(添加项目菜单的链接)时进行选取,或者为编辑相片/水印标签中现有项目做调整。
* Watermark to apply can be selected while adding new images (Add Items menu link) or adjusted for an existing item in Edit Photo / Watermark tab.
* ''站点管理(Site admin) -> 水印(watermarks)''中选择一个默认水印效果,这将被用于所有上传了的图片。
* Select a default watermark in ''Site admin -> watermarks'' which is applied to all uploaded images.
* 允许/禁止用户管理或使用他们自己的水印。
* Allow / disallow users to manage / use their own watermarks.


== 安装 ==
== Setup ==
*如果你还没有的话,那就马上[[Gallery:Download#模块|下载]][[Gallery:Installing_Modules|安装]]watermark模块吧。
*[[Gallery:Download#Modules|Download]] and [[Gallery:Installing_Modules|install]] the watermark module if you don't already have it.


=== 水印图片的上传 ===
=== Uploading Watermark Images ===
*打开水印管理页面并浏览本地计算机上的某个图片文件,然后点击'添加'
*Go to the watermark admin page and browse to an image file on your local computer, then click 'add'.
*现在你可以为水印命名并将其移至画布上,将其放置到适当的位置,它将对应地显示在你的图片上。
*Now you can name the watermark and move it on the canvas to the position you want it to appear on your images.
*最后一步是选择要加上水印的图片版本。
*The last step is choosing which image versions you want to be watermarked.
*点击'保存'
*Click 'save'
现在开始,你在gallery中添加的图片将自动被加上水印效果了。
When you now add images to your gallery the watermark will be automatically added.


=== 添加水印及打印服务 ===
=== Watermarking And Print Services ===
如果你为全尺寸的图片添加水印并使用某类似于[[Gallery:Modules:shutterfly|Shutterfly]]打印服务模块的话,那么打印出来的图片上也会有水印效果。
If you watermark full-size images and use any print service modules such as [[Gallery:Modules:shutterfly|Shutterfly]] then prints will include the watermark.


如果你希望得到一个具有水印效果的全尺寸图片,但同时也要无水印效果的打印的话,那么就得对相片或相册设定做标记;添加一个重设尺寸的图片,尺寸为100%以及水印重设图片而不是全尺寸的原始图片。
If you want a full-size image with the watermark but also allow printing without the watermark, edit the photo or album settings to add a resized image with size = 100% and watermark resizes but not the full-size original.


=== 为热链图片添加水印 ===
=== Watermarking Hotlinked Images ===
如果你希望热链图片也带有水印效果的话,请按照如下步骤操作:
If you want hotlinked images to have a watermark too, follow the next steps:
(热链图片即直接由其他网站链接过来的图片,而且是显示在全尺寸弹出图片中的图片)
(hotlinked images are images directly linked from other websites and also images you show in full size image popups)
*在水印管理页面点击水印的radio按钮来显示作为热链图片的显示。
*At the watermark admin page click the radio button of the watermark you want to display for hotlinked images.
*打开URL重写模块并在底部激活热链图片的水印。
*Go to the URL Rewrite module admin and at the bottom, activate watermarks for hotlinked images.


警告:如果你启用了热链图片水印而且又使用了[[Gallery:Modules:shutterfly|Shutterfly]]模块的话,由Shutterfly打印出来的图片将带有水印效果。为了防止出现这种情况:
WARNING: If you enable hotlinked image watermarking and you also use the [[Gallery:Modules:shutterfly|Shutterfly]] module, the printed pictures from Shutterfly will contain the watermark. To avoid this:
*在URL重写管理页面中,打开Setup(安装)标签
*At the URL Rewrite module admin page, go to the Setup tab
*在Approved Referers 列表中添加www.shutterfly.com
*Add www.shutterfly.com to the Approved Referers list


=== 自动为所有图片添加水印 ===
=== Automatically Watermarking All Images ===
:: '''注:''' 你需要Gallery 2.2和Gallery 2.2的水印模块。Gallery 2.1.2暂时尚无此特点。
:: '''Note:''' You need Gallery 2.2 and Gallery 2.2's watermark module for this. Gallery 2.1.2 doesn't have this feature yet.


如果你希望所有用户所选择的所有图片都毫无例外地加上你所定义的水印,并且不允许用户选择自己的水印或不添加水印的话,以下就是配置的方法:
If you want that all images added by all users are unconditionally watermarked with a watermark image you define without letting anyone a choice to choose a different or no watermark, this is how you can configure it:
# 打开'站点管理' -> '水印'
# Browse to 'Site Admin' -> 'Watermarks'
# 上传一个水印图片并保存。
# Upload a watermark image and save it.
# 在右侧栏目中,标记水印为'默认(Default)'并点击'保存(Save)'
# In the right column, mark the watermark as 'Default' and hit 'Save'.
# 取消选择'允许用户上传自己的水印图片(Allow users to upload their own watermark images)'这个选项
# Untick the option 'Allow users to upload their own watermark images'
# 勾选'仅使用以下选中的默认水印。仅站点管理这可以修改或移除水印。'
# Tick the option 'Use only the default watermark selected below. Only Site Administrators may change or remove watermarks.'
# 再次点击'保存(Save)'
# Click 'Save' again.


==浮雕效果的水印==
==Embossed Watermark==
看起来专业的带有浮雕效果的水印可以通过在透明的北京上使用灰/白色字体制作一个水印图片来实现。接着使文本本身呈半透明并在图层属性窗口中使用一些效果。将此水印效果保存为PNG格式的文件。Gallery2将会覆盖原始图片并达到很不错的效果。
A professional looking, embossed watermark can be achieved by making a watermark image using a white/grey coloured font on a transparent background.  You then also make the text itself partially transparent and apply some effects in the layer properties window. Save the watermark as a PNG file. Gallery2 will overlay the original image and achieve a nice look.


Photoshop图层属性
Photoshop Layer Properties
[[img:43965]]
[[img:43965]]


添加了水印的缩略图示例
Example of Watermarked Thumbnail
[[img:43973]]
[[img:43973]]


水印示例
Example Watermark
[[img:43968]]
[[img:43968]]


当取代GD而使用ImageMagick或NetPBM时效果会更好。
It has been suggested that this works better when using ImageMagick or NetPBM instead of GD.


可以参看一下[http://www.equusphotography.co.uk/gallery/v/2005-03-19_Medstead_Grange/Prelim_16/458/IMG_6090_edited-1.jpg.html ]过程实例。(感谢用户turnbulm的注释。)
Take a look at [http://www.equusphotography.co.uk/gallery/v/2005-03-19_Medstead_Grange/Prelim_16/458/IMG_6090_edited-1.jpg.html here] for an example of it in action. (Thanks to user turnbulm for the note.)


==Bugs==
==Bugs==
使用reupload(重新上传)模块重新上传图片时,水印没有被添加到图片上。
When reuploading images via the reupload module, watermarks are not added to the images.


[[Category:Gallery 2:Modules]]
[[Category:Gallery 2:Modules]]
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)