Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to insert images keeping the original image size automatically in Confluence #445

Open
cmeresse opened this issue May 16, 2024 · 0 comments

Comments

@cmeresse
Copy link

Problem

I am generating images automatically from plantuml files. So I don't know their original size and it can vary overtime when the plantuml is modified.

Confluence resizes the image by default if no width is provided which make them appear a bit blurry or too small. I would like to display the images with their original size.

I have seen the following macro is possible:

<!-- Macro: \!\[.*\]\((.+)\)\<\!\-\- width=(.*) \-\-\>
     Template: ac:image
     Attachment: ${1}
     Width: ${2} -->
![Example](../images/example.png)<!-- width=300 -->

But that does not give the possibility to insert the image with Width: <the_original_width_of_the_image>

Solution I'd like

I would like to be able to use the macro like this for instance (or any other appropriate solution):

<!-- Macro: \!\[.*\]\((.+)\)\<\!\-\- width=original \-\-\>
     Template: ac:image
     Attachment: ${1}
     Width: original -->
![Example](../images/example.png)<!-- width=original -->

And that mark would retrieve the original image width and insert it

Alternatives I've considered

I made different tries with "100%" or other css values but the result is not what I want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant