How does AddSearch detect the featured image for search results?

The featured image for search results is the image displayed on the left side of the search results. It’s detected automatically, and typically most prominent and first image that’s near the main content area. The minimum size of the featured image is 140 x 140 pixels and image shape should be relatively square. One side of the image can’t be more than three times longer than the other.