There are many premium wordpress themes having a great feature of creating auto thumbnail with the first image of post .So anyone tell us about this php function performing this action .