How to change an image without changing the image URL
Summary
I have multiple Showcase macros using the same image URL. I want to change the image without changing the image URL. Effectively, all the showcase macros' images are changed together. How do I achieve this.
Environment
Confluence Cloud
Diagnostics Steps
Not applicable.
Cause
There is no direct way to change the attachment from within the macro, only the image URL can be changed. A workaround is available below.
Workaround
In the page with the attachments, click on the More Actions button and click on Attachments.
Click on the View link, an image viewer pop-up will open in the same page.
Click on the Upload to a new version button and insert the image that you want to replace with.
Once the image has been uploaded, click on Done.
You can only upload a file of the same type. For example, a .jpg file can only be replaced with a .jpg file.
Return back to the page with the Showcase macro, the image in the Showcase macro will be changed.
Resolution
Not applicable.