Data merge: Clear space of empty images
Hello everyone,
after a lot of research, I still couldn't find a viable solution to a problem. I want to stack a couple of images in a text frame. The images are selected via data merge.
Now my problem is that empty images will still take space and don't collapse:

Each image here comes from a separate column in the dataset:
| @7245110 | @img2 | @img3 | @img4 | @img5 |
|---|---|---|---|---|
| neutral.png | neutral.png | neutral.png | neutral.png |
What I want is that if one or more images are not set, everything aligns to the left. But I couldn't find a way to collapse empty frames or scale the frame to a smaller image (a blank.png of sorts).
I'm running out of ideas so I'm starting to think I'll have to resort to a script, which I'd prefer to avoid since then previewing the merge will not look correctly.
Has anyone ever managed to solve this problem? This is the second time I'm running into it, already. Last time I solved it with a complex excel formula to automatically sort the columns.



