Configuring Watermarks

In this chapter you will learn how to use EnterMedia's image watermarking features. With EnterMedia, you can watermark all images in all catalogs or pick and choose what catalogs should have watermarked images. You can also configure where the watermarks are placed on the image.



  • Enabling Watermarks

    In EnterMedia you have very fine-grained control over what gets watermarked. I will give examples on how to watermark specific images all they way up to watermarking the entire site. Enabling watermarking is very easy it only requires modifying properties in XML files. See the chapter titled Online HTML/Text Editing , for more information on editing files in EnterMedia.

    • Site-Wide Watermarking
      File to Add Property to:
      /webapp/WEB-INF/base/entermedia/catalog/_site.xconf
      Property to Add:
      <property name="forcewatermark">true</property>
    • Specific Catalogs
      File to Add Property to:
      /webapp/media/browse/{catalog name}/_site.xconf
      Property to Add:
      <property name="forcewatermark">true</property>
    • Specific Sized Images
      File to Add Property to:
      /webapp/WEB-INF/base/entermedia/catalog/downloads/preview/{size}/_site.xconf
      Property to Add:
      <property name="forcewatermark">true</property>

      Sizes:

      • thumb - 150x150 - thumbnail used on results page.
      • medium - 300x300 - image used as the hover image.
      • large - 600x600 - download size option.
      • cache - 800x600 - image used on media viewer page.


  • Watermark Placement

    Just as you have fine-grained control over what gets watermarked you also have fine-grained control over where the watermark is placed. Setting watermark placement is very easy all that is involved is modifying properties in XML files. See the chapter titled Online HTML/Text Editing , for more information on editing files in EnterMedia.

    Watermark Position Options

    • north
    • northeast
    • east
    • southeast
    • south
    • southwest
    • west
    • northwest
    • center
    • tile

    • Site-Wide Watermark Position
      File to Add Property to:
      /webapp/WEB-INF/base/entermedia/catalog/_site.xconf
      Property to Add:
      <property name="watermarkplacement">{position}</property>
    • Specific Catalog Position
      File to Add Property to:
      /webapp/media/browse/{catalog name}/_site.xconf
      Property to Add:
      <property name="watermarkplacement">{position}</property>
    • Specific Sized Image Position
      File to Add Property to:
      /webapp/WEB-INF/base/entermedia/catalog/downloads/preview/{size}/_site.xconf
      Property to Add:
      <property name="watermarkplacement">{position}</property>
  • NOTE: If the forcewatermark or the watermarkplacement properties are set in multiple files the most specific file will determine how the watermark is applied. For example, the properties set on a specific sized image will override properties set for all catalogs.

  • Location of Watermark Image

    The image used for watermarking is /webapp/WEB-INF/base/themes/darktabs/entermedia/images/watermark.png. If you would like to use a different image for watermarking you can either replace the previously mentioned image, or if you created your own theme, create an image called watermark in /webapp/WEB-INF/base/themes/{your theme}/entermedia/images. For more information on creating your own theme see the chapter on theme creation.

Last Updated: Mon Nov 02 18:57:45 UTC 2009