Replacing an image
Background
Each time you upload an image to the database, that image is stored in the “Media library”. So if you want to attach a different image to an Item or a Soldier, you can upload a replacement image. Note that the replacement image will NOT overwrite the original image even if the image file names are the same. Instead a new file will be created with “-1” or “-2” etc. made part of the image file name.
This issue becomes even more serious if the same image is attached to multiple items, soldiers, etc. The replacement image file you are uploading will be attached ONLY to the item or soldier you are updating. It the image being replaced is attached to multiple Items or Soldiers, the links in those Items / Soldiers will continue to point to the original image.
Basically, in order to replace an image file that has already been uploaded, you must “edit” the existing image. Do NOT delete the image and try to upload it again.
Media library
You can replace an image while you are in the media library. Hover over the image and click “Replace media.” Select the replacement option, upload the new file and click Upload.
On the screen which appears, scroll down until you see the section to the right. Click on Upload a new file.
On the screen which appears, you have two replacement options:
- Just replace the file
- Replace the file, use new file name and update all links
Carefully read the instructions for each option and select the one that meets your needs. Finally, select the replacement image file and click Upload.
Note that the original image will be deleted from the media library.
With the ‘Edit item’ or ‘Edit soldier’ screen open
Featured images
Click on the image itself to edit or update it. DO NOT CLICK “REMOVE FEATURED IMAGE”! Scroll down the right side panel until you see the section pictured on the right. Click Upload a new file. Select the replacement option (see above), upload the new file and click Upload.
Secondary images gallery
The procedure is virtually the same. Click on the image to be replaced and scroll down the edit panel on the right to find the “Replace media” section as shown above. Select the replacement option (see above), upload the new file and click Upload.