This issue has been created
There are 4 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-208ed8b0-1f3c-48dc-9eea-3cfb06076bc2 XWIKI-23442 Open

PNG with transparency is black when resized without ratio locking

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-ebd447f4-f3e2-4ffb-a4c5-f80f3549025b LAMBLIN created this issue on 07/Aug/25 14:53
 
Summary: PNG with transparency is black when resized without ratio locking
Issue Type: cid:jira-generated-image-avatar-208ed8b0-1f3c-48dc-9eea-3cfb06076bc2 Bug
Affects Versions: 16.10.9, 17.4.3
Assignee: Unassigned
Attachments: ibm-spectrum-scale.png, image-2025-08-07-14-46-13-265.png, image-2025-08-07-14-49-07-512.png
Components: Image
Created: 07/Aug/25 14:53
Labels: regression
Priority: cid:jira-generated-image-static-minor-1164a690-3a70-41c1-aea6-5465efd2769e Minor
Reporter: LAMBLIN
Description:

Steps to reproduce:

include a PNG image with transparent background in a page with the following parameters - unlocked ratio, works also with only height set:

44027_image-2025-08-07-14-46-13-265.png

Image provided for example purpose:

 

44028_ibm-spectrum-scale.png  

 

Expected result:

The image is correctly displayed

Actual result:

The image is displayed with a black background - in fact the image seems displayed in inverted black and white.

 

44026_image-2025-08-07-14-49-07-512.png

Seems to be a regression of https://jira.xwiki.org/browse/XWIKI-15062

 
 

4 updates

 
cid:jira-generated-image-avatar-ebd447f4-f3e2-4ffb-a4c5-f80f3549025b Changes by LAMBLIN on 07/Aug/25 14:54
 
Description: *Steps to reproduce:*

include a PNG image with transparent background in a page with the following parameters - unlocked ratio, works also with only height set:

!image-2025-08-07-14-46-13-265.png!

Image provided for example purpose:

 

!ibm-spectrum-scale -1 .png |thumbnail !

   

 

*Expected result:*

The image is correctly displayed

*Actual result:*

The image is displayed with a black background - in fact the image seems displayed in inverted black and white.

 

!image-2025-08-07-14-49-07-512.png!

Seems to be a regression of https://jira.xwiki.org/browse/XWIKI-15062
Attachment: ibm-spectrum-scale.png
Attachment: ibm-spectrum-scale-1.png
 
cid:jira-generated-image-avatar-9b56bd7b-9255-4431-8daf-12fa152de598 Changes by Simon Urli on 12/Aug/25 10:55
 
Priority: Minor Blocker