We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to Add an Image to a Placeholder Using Aspose.Slides for Java?

could you please share the workaround code for adding an image to a placeholder?

Thank you for posting the question.

In PowerPoint documents, placeholders are also shapes. You can fill them with a picture like this:

var bufferedImage = ImageIO.read(new File("image.png"));
var image = presentation.getImages().addImage(bufferedImage);

// The shape can be also a placeholder.

// shape.getFillFormat().getPictureFillFormat().setPictureFillMode(PictureFillMode.Stretch);

API Reference: IFillFormat interface