this post was submitted on 17 Feb 2025
9 points (80.0% liked)

Pixel Art - pushing pretty pixels around

2561 readers
1 users here now

This shall be the community where we discuss, share, make and learn from each other how to draw the little pictures and game assets we all love.

Rules

Resources

founded 4 years ago
MODERATORS
 

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 1 month ago (1 children)

Thank you so much! I wasn't sure why this is happening.

[โ€“] [email protected] 4 points 1 month ago* (last edited 1 month ago)

When images are scaled up in browsers or apps to fill the screen, they usually use bilinear filtering or interpolation, which works well with photos but blurs pixel boundaries. By scaling up the pictures beforehand using the nearest-neighbor (blocky) method to a multiple of the original resolution (here 8x), you reduce or eliminate the blurring. The command works on Linux if you have ImageMagick installed, for Windows you also need to add magick in front IIRC. You can use convert instead of mogrify to avoid overwriting the original images but you then need to specify an output filename at the end, for example ob%01d.png for a counter of multiple filenames.