download iExpressions at
https://aescripts.com/iexpressions/
The blockify iExpression approximates any path by only horizontal and vertical lines. You can change the number of lines used to create a more or less blocky result and also animate this over time. Some noise parameters allow for more variation and give you full control and crative freedom.
The results created by this expression are similar to the mosaic effect of After Effects. But since the expression calculates a shape path instead of an image, the result is still a native Ae path that is resolution independent and that you can manipulate with shape repeaters, for example.