Image compression for pixel art that selects between sharp/smooth edges for resizeing

Hi

I am thinking about an image compression format that included on a grid each whether each point on a pixel was a smooth or sharp surface, resizing low res pixel art can create round shapes where we want square shapes and vice-versa. So you would mark the corner of a cube box as sharp and round on a sphere so you didn’t get rounded boxes or square-looking spheres.

Has anyone done this? do you think it would work?