DEV Community

Ice or Fire
Ice or Fire

Posted on

How do I resize pixel art without losing quality?

Let's say I have pixel art that's 100 by 100 pixels. How would I scale it up by a factor of 2 to be 200 by 200? Since it's pixel art I want it remain clear when becoming larger. I thought about getting individual pixels and duplicating them and writing them out to a new image file. For example, if the first pixel (top left) is white then my new image would need 2 white pixels (starting from the top left) and then would be duplicated below it.

Does that make sense? Is there a better way to do this?

Top comments (0)