Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resize images in Bitbucket wiki pages

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

![](image.jpeg =250x)

But, again, it doesn't change the size of the presented image.

Any idea?

like image 899
gal007 Avatar asked May 13 '19 08:05

gal007


People also ask

How do I change the size of a photo in Confluence?

To resize an image, Select it. Image handles will appear on each side. Hover over a handle, select it, and drag it out from the middle or in toward the center to change the image size.

Can you size an image in Markdown?

Unfortunately, there is no support for resizing an image using the Markdown syntax. Raw HTML needs to be used to change the image size in Markdown.

How do I make an image bigger in Markdown?

With certain Markdown implementations (including Mou and Marked 2 (only macOS)) you can append =WIDTHxHEIGHT after the URL of the graphic file to resize the image.

How do I resize an image in Jira?

After image insertion you can resize image by dragging it's corner in visual mode or by specifying exact width and height in text mode using syntax: ! projectavatar. png|height=250,width=250!


1 Answers

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/or width as "key=value" pairs inside curly braces immediately after the markdown for the image, for example:

![alt text for the image](image-file.png){width=50%}
![alt text for the image](image-file.png){height=50 width=60}
![alt text for the image](image-file.png){height=100}
![alt text for the image](image-file.png){width=200px}

See more at: https://jira.atlassian.com/browse/BSERV-7426

like image 76
Ricardo Avatar answered Sep 18 '22 05:09

Ricardo