Gallery: 模块:水印:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: = Watermark Module = Applies watermarks to your images. == Description == Ability to apply watermarks on images. Requires an active graphics toolkit to actually perform the image operat...)
 
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
= Watermark Module =
= 水印模块(Watermark Module) =
Applies watermarks to your images.
在你的图片上使用水印。


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


=== Features ===
=== 特点 ===
* Individual users can manage their own watermark images in ''Your Account'' -> ''Watermarks''
* 个人用户可以在''你的帐户(Your Account'' -> ''水印(Watermarks)''中对他们的水印图片进行管理。
* Configure watermark images available to all users in site admin.
* 在站点管理中对所有用户可用的水印图片进行配置。
* 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.
* 站点管理员也可以选择某个水印图片用于热链图片(直接由其他网站进行链接).. 在站点管理->水印中选择要使用的水印之后,此特点必须在URL重写模块中被激活。
* 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.
* 要使用的水印可在添加新图片(添加项目菜单的链接)时进行选取,或者为编辑相片/水印标签中现有项目做调整。
* Select a default watermark in ''Site admin -> watermarks'' which is applied to all uploaded images.
* ''站点管理(Site admin) -> 水印(watermarks)''中选择一个默认水印效果,这将被用于所有上传了的图片。
* Allow / disallow users to manage / use their own watermarks.
* 允许/禁止用户管理或使用他们自己的水印。


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


=== 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'
*点击'保存'
When you now add images to your gallery the watermark will be automatically added.
现在开始,你在gallery中添加的图片将自动被加上水印效果了。


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


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.
如果你希望得到一个具有水印效果的全尺寸图片,但同时也要无水印效果的打印的话,那么就得对相片或相册设定做标记;添加一个重设尺寸的图片,尺寸为100%以及水印重设图片而不是全尺寸的原始图片。


=== 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)
(热链图片即直接由其他网站链接过来的图片,而且是显示在全尺寸弹出图片中的图片)
*At the watermark admin page click the radio button of the watermark you want to display for hotlinked images.
*在水印管理页面点击水印的radio按钮来显示作为热链图片的显示。
*Go to the URL Rewrite module admin and at the bottom, activate watermarks for hotlinked images.
*打开URL重写模块并在底部激活热链图片的水印。


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:
警告:如果你启用了热链图片水印而且又使用了[[Gallery:Modules:shutterfly|Shutterfly]]模块的话,由Shutterfly打印出来的图片将带有水印效果。为了防止出现这种情况:
*At the URL Rewrite module admin page, go to the Setup tab
*在URL重写管理页面中,打开Setup(安装)标签
*Add www.shutterfly.com to the Approved Referers list
*在Approved Referers 列表中添加www.shutterfly.com


=== Automatically Watermarking All Images ===
=== 自动为所有图片添加水印 ===
:: '''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.
:: '''注:''' 你需要Gallery 2.2和Gallery 2.2的水印模块。Gallery 2.1.2暂时尚无此特点。


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.
# 上传一个水印图片并保存。
# In the right column, mark the watermark as 'Default' and hit 'Save'.
# 在右侧栏目中,标记水印为'默认(Default)'并点击'保存(Save)'
# Untick the option 'Allow users to upload their own watermark images'
# 取消选择'允许用户上传自己的水印图片(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.'
# 勾选'仅使用以下选中的默认水印。仅站点管理这可以修改或移除水印。'
# Click 'Save' again.
# 再次点击'保存(Save)'


==Embossed Watermark==
==浮雕效果的水印==
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.
看起来专业的带有浮雕效果的水印可以通过在透明的北京上使用灰/白色字体制作一个水印图片来实现。接着使文本本身呈半透明并在图层属性窗口中使用一些效果。将此水印效果保存为PNG格式的文件。Gallery2将会覆盖原始图片并达到很不错的效果。


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


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


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


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


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.)
可以参看一下[http://www.equusphotography.co.uk/gallery/v/2005-03-19_Medstead_Grange/Prelim_16/458/IMG_6090_edited-1.jpg.html ]过程实例。(感谢用户turnbulm的注释。)


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


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

2008年8月19日 (二) 17:10的最新版本

水印模块(Watermark Module)[ ]

在你的图片上使用水印。

描述[ ]

可以为图片使用水印效果。需要一处于激活状态的图形工具包来达成对图片的操作(imagemagick,netpbm或gd)。

特点[ ]

  • 个人用户可以在你的帐户(Your Account')' -> 水印(Watermarks)中对他们的水印图片进行管理。
  • 在站点管理中对所有用户可用的水印图片进行配置。
  • 站点管理员也可以选择某个水印图片用于热链图片(直接由其他网站进行链接).. 在站点管理->水印中选择要使用的水印之后,此特点必须在URL重写模块中被激活。
  • 要使用的水印可在添加新图片(添加项目菜单的链接)时进行选取,或者为编辑相片/水印标签中现有项目做调整。
  • 站点管理(Site admin) -> 水印(watermarks)中选择一个默认水印效果,这将被用于所有上传了的图片。
  • 允许/禁止用户管理或使用他们自己的水印。

安装[ ]

  • 如果你还没有的话,那就马上下载安装watermark模块吧。

水印图片的上传[ ]

  • 打开水印管理页面并浏览本地计算机上的某个图片文件,然后点击'添加'。
  • 现在你可以为水印命名并将其移至画布上,将其放置到适当的位置,它将对应地显示在你的图片上。
  • 最后一步是选择要加上水印的图片版本。
  • 点击'保存'

现在开始,你在gallery中添加的图片将自动被加上水印效果了。

添加水印及打印服务[ ]

如果你为全尺寸的图片添加水印并使用某类似于Shutterfly打印服务模块的话,那么打印出来的图片上也会有水印效果。

如果你希望得到一个具有水印效果的全尺寸图片,但同时也要无水印效果的打印的话,那么就得对相片或相册设定做标记;添加一个重设尺寸的图片,尺寸为100%以及水印重设图片而不是全尺寸的原始图片。

为热链图片添加水印[ ]

如果你希望热链图片也带有水印效果的话,请按照如下步骤操作: (热链图片即直接由其他网站链接过来的图片,而且是显示在全尺寸弹出图片中的图片)

  • 在水印管理页面点击水印的radio按钮来显示作为热链图片的显示。
  • 打开URL重写模块并在底部激活热链图片的水印。

警告:如果你启用了热链图片水印而且又使用了Shutterfly模块的话,由Shutterfly打印出来的图片将带有水印效果。为了防止出现这种情况:

  • 在URL重写管理页面中,打开Setup(安装)标签
  • 在Approved Referers 列表中添加www.shutterfly.com

自动为所有图片添加水印[ ]

注: 你需要Gallery 2.2和Gallery 2.2的水印模块。Gallery 2.1.2暂时尚无此特点。

如果你希望所有用户所选择的所有图片都毫无例外地加上你所定义的水印,并且不允许用户选择自己的水印或不添加水印的话,以下就是配置的方法:

  1. 打开'站点管理' -> '水印'
  2. 上传一个水印图片并保存。
  3. 在右侧栏目中,标记水印为'默认(Default)'并点击'保存(Save)'。
  4. 取消选择'允许用户上传自己的水印图片(Allow users to upload their own watermark images)'这个选项
  5. 勾选'仅使用以下选中的默认水印。仅站点管理这可以修改或移除水印。'
  6. 再次点击'保存(Save)'。

浮雕效果的水印[ ]

看起来专业的带有浮雕效果的水印可以通过在透明的北京上使用灰/白色字体制作一个水印图片来实现。接着使文本本身呈半透明并在图层属性窗口中使用一些效果。将此水印效果保存为PNG格式的文件。Gallery2将会覆盖原始图片并达到很不错的效果。

Photoshop图层属性 img:43965

添加了水印的缩略图示例 img:43973

水印示例 img:43968

当取代GD而使用ImageMagick或NetPBM时效果会更好。

可以参看一下过程实例。(感谢用户turnbulm的注释。)

Bugs[ ]

使用reupload(重新上传)模块重新上传图片时,水印没有被添加到图片上。