Reputation: 7202
I'm trying to resize the images in the wiki pages and nothing is working: the images are always presented with 100% width of the page.
I tried with reStructuredText:
.. image:: image.jpeg
:height: 100px
:width: 200px
:scale: 50 %
:alt: alternate text
(and different combinations, ignoring some lines).
Then I also tried

But, again, it doesn't change the size of the presented image.
Any idea?
Upvotes: 21
Views: 17672
Reputation: 11
Be careful where you set the width and height properties.
In my case, the attached image input format is as follows:
[![](){width=50%}]()
example:
[{width=50%}](attachment:1234/5678)
Upvotes: 1
Reputation: 4328
Bitbucket Server 7.5 includes support for defining the size of images in markdown.
[...]
The syntax which is supported is to specify the
height
and/orwidth
as "key=value" pairs inside curly braces immediately after the markdown for the image, for example:
{width=50%}
{height=50 width=60}
{height=100}
{width=200px}
See more at: https://jira.atlassian.com/browse/BSERV-7426
Upvotes: 17