Image data is increasingly common in structural health monitoring systems. However, due to the limitation of hardware resources such as network bandwidth, the data collected by sensors cannot be transmitted efficiently. In order to solve the problem of inefficient data transmission and ensure data recoverability, an end-to-end compression and reconstruction algorithm with an attention-enhanced residual module and a quantization mechanism is proposed. In order to meet the needs of SHM systems for image diversity, multi-scale images of local and global structural damage are used for research. The performance of the proposed algorithm is compared with traditional image compression standards and baseline models. Experimental results show that the peak signal-to-noise ratio of the reconstructed image is greater than 30 dB at different bit rates, effectively reconstructing the original image information; for images with complex textures, the residual block attention module can improve the rate-distortion performance of the proposed algorithm; when the bit rate is less than 0.44 bit per pixel, the peak signal-to-noise ratio and structural similarity of the reconstructed image of the proposed algorithm are better than those of the autoencoder baseline model and Joint Photographic Experts Group compression method. Structural damage detection examples verify the usability of compressed-reconstructed images in engineering applications.