There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-a2df3350-4adc-4602-9fdb-6990d05dfcb0 XWIKI-25010 Open

Image height is not taken into account when width is missing and rendering.imageDimensionsIncludedInImageURL = false

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-0790b017-1e54-4947-9ee1-02294b330991 Changes by Andreea Bran on 17/Sep/26 11:45
 
Description: Steps to reproduce:
1. On the xwiki.properties of a wiki, set rendering.imageDimensionsIncludedInImageURL = false (the default is true).
!xwikiproperties-setting.png|thumbnail!
2. Start the wiki server.
3. Add an image on a page.
4. Open the image editing dialogue > Advanced tab.
5. Add a height value (for example 250px) but keep the width field empty.
!only-set-height.png|thumbnail!
6. Save the image settings and page.

Expected result: the image will keep the set height
Actual result: the image is not keeping the set height (it's also still present in the html), it will take an automatic height because of an inherited CSS rule which is
{code}height: auto;{code} that is set on all images from the skin.
!result.png|thumbnail!


Current workaround: add a value to the weight.