Is it possible to add thickness to 2D sprite?

I was wondering if it’s programmatically possible to add thickness to a 2D pixelated image/sprite in ThreeJS? An example would be:

From:
image

To:





image sources: