Managing images and videos for thumbnails and preview

You can control the size of thumbnails and specify acceptable file types for images and videos using the file-preview-config.xml.

About this task

The file-preview-config.xml file controls the size of thumbnails and supports the acceptable image and video types in grid view and preview dialog.

Procedure

  1. Navigate to the LCC?directory.
  2. Use the wsadmin LCConfigService.checkOutConfig command to check out the file-preview-config.xml.
  3. Open the file-preview-config.xml in your preferred text editor.
  4. Review the default size values for previews in the thumbnail grid, gallery view, and detail view in the <preview> section and change them if needed:
    -<preview>
        <thumbnailView height="73" width="73"/>
        <galleryView height="132" width="200" textHeight="30"/>
        <detailView height="450" width="450"/>
    </preview>
  5. Review the default values for acceptable image formats in the <photos section and change them if needed:
    Note: The default list is the complete supported list.
    -<photo>
      -<supportedFileTypes>
        <extension>jpg</extension>
        <extension>jpeg</extension>
        <extension>gif</extension>
        <extension>png</extension>
      </supportedFileTypes>
    </photo>
  6. Review the default values for acceptable video formats in the <video> section and change them if needed:
    Note: The default list is the complete supported list.
    -<video>
      -<supportedFileTypes>
        <extension>mp4</extension>
        <extension>mov</extension>
        <extension>flv</extension>
      </supportedFileTypes>
    </video>
  7. Be sure to save your changes.