CCSSv1 is now outdated. For best stream compression results, use CCSSv2: https://scratch.mit.edu/projects/1384783076/ (CCSSv2 renderer should be backwards compatible with CCSSv1 encoding) An adapted version of @DumzDev 's stream encoder. This example image is displayed in 80*45, containing 3600 unique pixels, and is stored in 6 Cloud Variable Slots CCSSv1 offers greater resolution on images with repeating horizontal pixels, and dynamically adapts pixel size depending on available resolution. However, this encoding produces a lower-resolution result on images with very few repeating pixels. The encoder is also more resource-demanding. Encoder source code: https://codeberg.org/HalfofBilly/CCSSv1 If you have any suggestions or questions please let me know.