The VG Resource
Double the size of a sprite without quality loss. - Printable Version

+- The VG Resource (https://www.vg-resource.com)
+-- Forum: Archive (https://www.vg-resource.com/forum-65.html)
+--- Forum: July 2014 Archive (https://www.vg-resource.com/forum-139.html)
+---- Forum: The Resource (https://www.vg-resource.com/forum-85.html)
+----- Forum: The Spriters Resource (https://www.vg-resource.com/forum-5.html)
+----- Thread: Double the size of a sprite without quality loss. (/thread-19599.html)



Double the size of a sprite without quality loss. - Koetje - 02-21-2012

Hi guys!

For an assignment at school, I have to code an existing arcade game in c++. I have choosen Contra to remake, so I looked out for the required sprites. I have found the orignal ones, but I'm working at a resolution of 512x480 (double of the nes resolution).

This means that I have to double the size of the sprites. But when I do this, the sprites start to get blurry and ugly.

Is their someone who can do it correctly (or make the sprites at the right size?).

The sprites I currently have are attached to this post.


Thanks guys!


RE: Double the size of a sprite without quality loss. - Maxim - 02-21-2012

You have to resize the sprites by a factor of 200% without interpolation. This obviously increases the file size as well.


RE: Double the size of a sprite without quality loss. - Koetje - 02-21-2012

Hmm, could you give me instructions how to do this in Photoshop (or another program)?
Seems like I can't find the right buttons
Found it!

Thnaks for your help, dude


RE: Double the size of a sprite without quality loss. - Maxim - 02-21-2012

I don't have Photoshop, but you can try Gimp (it's free). Click on "Image" in the menu bar and then "scale image". Enter '200' in the width and height fields and make sure to select 'percent' instead of 'px'. Finally, set 'interpolation' to 'none' and click on 'scale'.

http://docs.gimp.org/en/gimp-tutorial-quickie-scale.html


RE: Double the size of a sprite without quality loss. - Dazz - 02-21-2012

mspaint does it no problem.


RE: Double the size of a sprite without quality loss. - Jay Rockman - 02-23-2012

I agree with Dazz. I always resize the sprites I use for comics in MSPaint. I know how to do it in Photoshop, but I find it faster in MSPaint.


RE: Double the size of a sprite without quality loss. - Lilly - 02-24-2012

Doubling the size is all you have to do? I agree with the posters above me, MSPaint (Or my favorite alternative, Kolourpaint.) can do that just fine. Although if you want to resize a lot of them a little faster, and even rotate them more cleanly if need be, I'd check out RotSprite.


RE: Double the size of a sprite without quality loss. - puggsoy - 02-24-2012

It took me a while to figure out how to do this on GIMP, but as Maxim said, you just have to set the Interpolation to "None". Then you got some nice and pixelated sprites!


RE: Double the size of a sprite without quality loss. - Kamon - 03-01-2012

To do this in Photoshop, go to Edit > Preferences > General

Under Image Interpolation, selected Nearest Neighbor (preserve hard edges).

Then just resize your image as normal, simple as that.


RE: Double the size of a sprite without quality loss. - RoleOfGSHC - 03-03-2012

(02-21-2012, 10:46 AM)Maxim Wrote: I don't have Photoshop, but you can try Gimp (it's free). Click on "Image" in the menu bar and then "scale image". Enter '200' in the width and height fields and make sure to select 'percent' instead of 'px'. Finally, set 'interpolation' to 'none' and click on 'scale'.

http://docs.gimp.org/en/gimp-tutorial-quickie-scale.html

I would like to mention that this is not a factor of 200%, but rather 400%. As you are doubling the size both length and width-wise, you're essentially doubling it twice, so that each pixel becomes four pixels in size.


RE: Double the size of a sprite without quality loss. - Dazz - 03-03-2012

Yes, but it's 200% in both dimensions. Which is 2x the size of the original pixel... It's a grid, so it's 2x2 grids for each pixel - instead of 1x1. You're just doubling dimensions, not the number of pixels in the sprite.