I made such a small effect of the “JPEG compression”, it’s a bit unfinished, but I present you its creation structure.
Main material:
RGB to YCbCr material function:
YCbCr to RGB material function:
Result:
Original:
Enjoy!