Adding a featured image to post automatically

Hi all,

Is there a way to automatically add a featured image when publishing a post based on the first image inside the gallery of the post.

FYI: I am not attaching any images to my posts. I am just using the gallery shortcode [gallery].

many thanks,

Bro this link for “Automatic Featured Image Posts” =
Thanks bro.