Cloning image references
As we saw in Image display and storage, each time you import an image into a TreePad file, the actual image (the image object or file) is compressed and stored within the database, and only an image reference to it is inserted into the article at the appropriate place, which saves considerable space within the article, making it quicker to search, etc. This is fine if each image is different, but if you wish to display the same image several times within the same file, storing a separate copy of the image for each reference to it wastes space, since unnecessary duplicates of the image are kept in the TreePad database file.
To keep your TreePad database files as small as possible when displaying the same image in more than one location within the same TreePad file, use the commands in this article to create multiple references to the same image. This will be called Copying⁄Pasting the image as a clone, or cloning the image reference.
To copy the image reference
Click the image, then
- Click Main menu ⁄ Edit ⁄ Copy special ⁄ Copy image as clone; or
- Press Shift+Ctrl+Q.
To paste the image reference
Position the article cursor where you want the image reference to be inserted, then
- Click Main menu ⁄ Edit ⁄ Paste special ⁄ Paste image as clone; or
- Press Shift+Ctrl+P.
- Conserves space in the TreePad database file compared with conventional Copy⁄Paste.
- No risk of image degradation since images have already been stored.
- An image reference can be pasted multiple times after one copy has been made.
- Cannot be used when text is also highlighted2.
- Scope limited to the current TreePad file.
When to use
- Whenever more than one copy of the same image is required within the same file.
- You can also use this method to move an image safely to another article by copying and pasting the image reference to the new location, then manually deleting the original reference. See Moving images.
- An image reference (clone) can not be copied from one file, and pasted into another file. Use standard copy⁄paste instead.
- Image reference cloning is best applied when the image is selected by focusing it. It will work for a single highlighted image, provided that nothing else such as article text is included, otherwise the error message "No image selected" appears.