For image processing via Neural Networks, I suggest you to follow: https://becominghuman.ai/image-processing-with-deep-learning-a-quick-start-guide-38e166340200?gi=88a1f3bcdc86
Auto-encoders have successfully been used to compress thumbnail images where JPEG compression struggles because of the very low resolution. I really don't have a clear idea of what you are asking but this is muy best guess.
Article Variable Rate Image Compression with Recurrent Neural Networks