There are 4 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-db0d75d0-3edc-4dd9-990a-3e7e77a3defd XWIKI-25010 Open

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

 
View issue   ยท   Add comment
 

4 updates

 
cid:jira-generated-image-avatar-bd1ec32c-2673-48f2-b8a5-59202b2fa2fc Changes by Andreea Bran on 17/Sep/26 11:29
 
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!
Attachment: result.png
Attachment: only-set-height.png
Attachment: xwikiproperties-setting.png