Hide image on pptx

Hi Plumsail team,

I want to conditionally hide an image in pptx.

I’ve tried to use hide, hide-block-if and hide-block-if-nothing in the image’s alt text, but they all end up removing the slide entirely.

The condition right now is whether a key in the JSON is true or false.

Also letting you know that I’ve tried to conditionally SHOW images and that failed for other reasons, which is why i’m trying the reverse here.

Hi @hleong!

Since images are separate from other content like text and tables, the easiest way to make sure the slide looks right with or without a picture is to create two versions of it.

Here’s how that would work:

  1. Slide A: This slide would be your "No picture" version, so you need to apply a conditional formatter like {{booleanValue}:hide-block-if(No)}

  2. Slide B: This slide would be your "With picture" version, so you need to apply a conditional formatter like {{booleanValue}:hide-block-if(Yes)}

This way you make sure your layouts are always perfect.

Let me know what you think of this workaround.

Best regards,
Milagros
Plumsail team