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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay