JPEG standard is commonly used for the still image compression. However, the DCT-based coding of JPEG is one of the lossy compression tools and introduces most artifacts in the decompressed image such as blocking and ringing artifacts. In this paper, our proposed method focuses on how to efficiently detect the blocks which cause ringing artifacts. Moreover, these ringing blocks will be further filtered and the texture region will be able to preserve as well as the smooth region. Simulation results show that our proposed method can outperform the related algorithms in subjectively and objectively. By comparing JPEG compressed image, the decompressed image using our algorithm can achieve the better PSNR as well as the visual performance, especially at the lower quality coding (the higher compression rate).