Manage images in Confluence site - 8.x

Overview

Finding and managing images for a site can be difficult. This site uses the Attachment Table macro, which is part of the Advanced Tables for Confluence app, to help. It provides a good inventory view and makes finding and removing obsolete images easier. We follow a process where all sitewide (global) images are to be attached to the Images page. These are images that are most likely to be needed on multiple pages or are of a general nature like banners, icons, and other standard image assets. Page specific attachments are often just attached to their respective pages. Sometimes one of these images needs to be used on other pages, in this case, the image should be moved to the global Images page. Duplication should be avoided; specifically, be careful when copying pages with attachments as it duplicates the attachments. 

The Attachment Table macro can also be used to manage general attachments, but this how to focus on images specifically.

The succeeding sections describes what is done on this site. You need to adjust based on your own requirements and size of your site. In our case, we split management of the images into two cases — global images and everything else. Larger sites may want to manage it on a space level by constructing a template page and copying it to each space.

Steps for a page with shared images

These steps assume you have a page that contains a set of shared images that need to be managed.

Steps for sitewide images

These steps are for managing images across a selection of spaces and pages. Many are similar to the previous example. Some understanding of how to use regular expressions is assumed.

Be careful on larger sites

Gathering a large number of attachments from lots of pages can take significant time. Subset appropriately for your site. For testing, limit the pages or spaces accessed until you are happy with the result. For production use, consider using the Cache macro (Confluence download only) to reduce resources and improve display time.

Example result

(info) Images (global image page) wiki page is a live example of the Attachment Table macro in action.

Other examples

Visit our full list of product examples for additional inspiration!