Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

273
Views
How to scale 386*389 png image to 20*20 in pixels

I am creating a chess game in unity and need my pieces to be 20*20.

I currently have a chess king (png file) that is 386 by 389 pixels and when I try to resize it it gets all blurry.

I have tried using Gimp scale image and IrfanView to no avail.

Can anyone help?

This is the image in case that's helpful. https://i.stack.imgur.com/lkUp9.png

Edit: I made the board bigger and my pieces bigger so I could avoid "pixel space"

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I'm not saying it's impossible to algorithmically scale to that size without blurriness, but I've never seen a scaling algorithm that would do a good job. At 20x20 pixels, you are in the "pixel art" realm, where you'd need to manually set pixels to get good results.

The reason I doubt a scaling algorithm will do well with this task, is that it requires judgment on what details are important to express. E.g. The tines on a queen's crown are meaningful as iconography, because humans have seen enough crowns to know that pointy bits on the top are what make its "crownliness".

I would put on the "pixel artist" hat or hire one. Use the scaled down image as a guide. Create an extra layer on top of it. Fill in your black pixels first, and then in a second pass, add grey or mid-opacity pixels to the jagged edges to smooth. You've only got a dozen pieces to do. ;)

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!