Get image post ID


I want to generate a Photo gallery on post using Shortcode gallery, for example [gallery id=“123”].
I uploading photo via Post image field.

I try to generate gallery with shortcode [gallery ids="{Dodatne slike Fotogalerijo:81:full:center:post_id}"] inside the Body field, but unsuccessfuly. Is it possible to get IDs of images post anyway?

Thanks, Daniel

Any suggestion?