Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use img src in HTML macro

Salvatore Filippo Cremona
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 8, 2022

Dear community. I am trying to make my Confluence page a bit nicer, and I was trying to use HTML and CSS macro. Actually, I am facing some problem, importing pictures which are saved in the page or in my local pc. I tried the well-known HTML instruction:

<img src="C:\Users\Cremona\Documents\Doc Personali\Foto\c172_1.jpg" alt="Cessna 172">

but it does not work. Any suggestions? 

Thanks! 

 Salvatore 

1 answer

0 votes
Patrick Vanhoof
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 9, 2022

See Security considerations on page https://confluence.atlassian.com/conf719/html-macro-1157466770.html

Maybe the macro is still disabled.

Salvatore December 9, 2022

Thanks Patrick. Actually, HTML macro is working. It is not working the picture import through the instruction "img src". 

I had a chance to use the HTML macro for other functions and it is ok, but I do not know why I cannot display pictures. Thanks!

Patrick Vanhoof
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2022

Salvatore, then it might have something to do with the fact that the Confluence instance does not have access to the location of the picture. Maybe it works when the picture is placed in a folder inside the Confluence isntance?

Like Salvatore likes this
Salvatore March 8, 2023

Hi Patrick 

Sorry for the delay in responding, but I've been away for a while. Problem solved. Thanks again ! 

Like Patrick Vanhoof likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events