Joint photographic experts group (JPEG) compression is lossy compression, and degradation of image quality worsens at high compression ratios. Therefore, a reconstruction process is required for a visually pleasant image. In this paper, we propose an end-to-end deep learning architecture for restoring JPEG images with high compression ratios. The proposed architecture changes a core principle of the squeeze and excitation network for low-level vision tasks where pixel-level accuracy is important. Instead of extracting global features, our network extracts locally embedded features and fine-tunes each feature value by using depthwise convolution. To reduce the computational complexity and parameters with large receptive fields, we use a combination of the recursive structure and feature map down-and up-scaling processes. We also propose a compact version of the proposed model by decreasing the number of filters and simplifying the network, which has about one-twentieth of the parameters of the baseline model. Experimental results reveal that our network outperforms conventional networks quantitatively, and the restored images are clear with sharp edges and smooth blocking boundaries. Furthermore, the compact model shows higher objective results while maintaining a low number of parameters. In addition, at a high compression ratio, the overall information, including details in the blocks, are lost owing to high quantization errors. We apply a generative adversarial network structure to restore these highly damaged blocks, and the results reveal that the image produced has details similar to those of the ground truth.INDEX TERMS Convolutional neural network, JPEG image restoration, generative adversarial network.