Dear Aspose Support Team,
We have encountered a bug in the Aspose.Slides for Java library, specifically related to incorrect image export including a gradient background. Below are the details of the issue, along with the necessary information for your review:
Reproduction Steps:
-
Example presentation with a gradient background: ColorExportBugExample.zip (66.8 KB)
-
Code triggering the bug:
public void bugReproduction() throws FileNotFoundException {
Presentation presentation = new Presentation(
new FileInputStream(
new File("/path/to/ColorExportBugExample.pptx")));
for (var slide : presentation.getSlides()) {
try (FileOutputStream fos = new FileOutputStream(
"/temp/slides/jpg/" + (presentation.getSlides().indexOf(slide) + 1)
+ ".jpg")) {
var img = slide.getImage(2, 1);
img.save(fos, ImageFormat.Jpeg);
}
}
}
Issue Description:
-
Expected Appearance: Export all Slides from the Example Presentation in PowerPoint (Slide 1:
slide1-pptx.jpg (99.1 KB) -
Aspose Exported Slide 1: Execute the code from the Reproduction Section (Slide 1:
slide1-aspose.jpg (92.9 KB)
Observations:
- Slide 2 of the Aspose-Exported images is displayed correctly, all other slides seem like to have a opacity filter on the background color, which is not visible in the Powerpoint-Exported images
- we are using the newer Modern API to export the images that were announced in version 24.4
Environment:
- Aspose.Slides version: 24.4
- Java version: 17
- Operating Systems: Ubuntu 22.04 & macOS 14.4.1 & Windows 11