Resizing tiles for MV

I'm sharing this in case it's helpful to any GIMP users who have a lot of files to resize.

I was getting tired of going through my sprite files one at a time just to apply the very same resize operation, so I looked around for a way to batch-edit them. I found a GIMP plugin called BIMP that provides batch file manipulation as a menu item inside GIMP. I found it easy to install and use, it has all of GIMP's native resize interpolation methods, and it's saving me hours of work. I highly recommend it.
Just try the whole iconset from Avery, Yurixy. 😛 If it works, we're all very happy!
This method wouldn't work for 24p icons... But I can try to see if I find a way here... I can't promise though... I will check it out over the next days.
I wish you luck. 🙂 It would be awesome to *snap* have access to all VX Ace icons like that.
If someone comes up with a good little guide for Icons I would love it. 

Also stuck with 24x trying get to 32x. Once someone figures it out do the 1-2-3 step process for idiots like me who have had like no sleep since MV came out haha. 
How would I resize in GIMP?
How would I resize in GIMP?
Here's how you would resize one file using GIMP:

  1. Start GIMP, and open the file you want to resize.
  2. In the Image menu, find the option called Scale Image...
  3. A Scale Image dialog box will open. The parameters are as follows:
  • Width and Height: Type your new width or height. An MV-compatible image is 1.5 times the width and height of a VXAce-compatible image. For example, if you are resizing a sprite file that's 384x256, its new dimensions will be 576x384. (If the chain icon to the side of the Width and Height textboxes is linked together, then you only need to change one dimension, and the other will scale up to match.)
  • X resolution and Y resolution: Ignore these. Pixels per inch is only relevant to images intended for printing.
  • Interpolation: Select the algorithm that GIMP will use to "read between the lines" as it's translating your image to a different pixel count. Since the game I'm converting has a 16x16 retro look, I've been using "None" to keep the pixels chunky. A quick try of the other algorithms has me thinking that "Cubic" is probably your best bet for scaled-up images that look smooth but not blurry. [EDIT: It has come to my attention that any interpolation method will leave seams at tile boundaries, unless it specifically knows to ignore tile boundaries. I don't know what interpolation methods do this.]
Then click the Scale button, export your scaled image to PNG in the corresponding folder of your MV project, and you're good to go! I hope that helps.

[EDIT: If you'd like a walkthrough for using BIMP to resize multiple files at once, let me know. However, the same caveat applies to interpolation.]
Here's how you would resize one file using GIMP:

  1. Start GIMP, and open the file you want to resize.
  2. In the Image menu, find the option called Scale Image...
  3. A Scale Image dialog box will open. The parameters are as follows:
  • Width and Height: Type your new width or height. An MV-compatible image is 1.5 times the width and height of a VXAce-compatible image. For example, if you are resizing a sprite file that's 384x256, its new dimensions will be 576x384. (If the chain icon to the side of the Width and Height textboxes is linked together, then you only need to change one dimension, and the other will scale up to match.)
  • X resolution and Y resolution: Ignore these. Pixels per inch is only relevant to images intended for printing.
  • Interpolation: Select the algorithm that GIMP will use to "read between the lines" as it's translating your image to a different pixel count. Since the game I'm converting has a 16x16 retro look, I've been using "None" to keep the pixels chunky. A quick try of the other algorithms has me thinking that "Cubic" is probably your best bet for scaled-up images that look smooth but not blurry, 
Then click the Scale button, export your scaled image to PNG in the corresponding folder of your MV project, and you're good to go! I hope that helps.
Thanks for this going to share this with someone who needed this on reddit!
I have GIMP2. But I'm brand new to it. taarna23 spoke of how to do it with GIMP but I don't see some of the tools mentioned. Anyone want to share the detailed for a newb version of how to on GIMP2?
I have GIMP2. But I'm brand new to it. taarna23 spoke of how to do it with GIMP but I don't see some of the tools mentioned. Anyone want to share the detailed for a newb version of how to on GIMP2?
Taarna gave some advanced advice for using a filter to interpolate after resizing. If you're looking for a basic walkthrough, I wrote one just a couple posts above yours in this thread. (It should apply to GIMP2; my GIMP installation's version is 2.8.) Let me know if you get stuck anywhere.

Since you're new to GIMP, I'll explain exporting in case you're not sure what to do after resizing the image. GIMP's own file format is xcf, but you'll need to save your resized RPG Maker image as a png file, using the Export command. Here's a walkthrough:

  1. Under the File menu, select Export...  An Export Image dialog (similar to the Save dialog) should appear.
  2. Use the Export dialog's file browser to navigate to your MV project, to the subdirectory of img that matches the type of resource you're exporting.
  3. Check the export filename in the textbox at the top of the Export dialog. The filename should end with the extension .png but if it doesn't, change the extension to .png.
  4. Click the Export button near the bottom right corner of the Export dialog.
And you're done! You may close the file in GIMP. (GIMP will warn you that it's unsaved, but you're free to close without saving, because you've exported what you want.)
38e6.png



Feel free to ask me anything or to add suggestions ^.^
It looks to me like you are having the same problem I am ending up with in GIMP.


The tiles that have no transparent border resize nicely, but the ones next to transparent tiles are getting messed up.


ayene%20resize_zpsqc7fonia.png



I suggest ( and I am going to try) resizing with a bright color fill in transparent areas, and then making that color transparent again after resize, and see what happens.


I'll just make a brightly colored background in a lower layer, make new layer from visible, rezize, and then set bright color to alpha. That's my hope for a solution. Let me know f anyone tries it beore I do - I am pretty tied up today, but I wanted to post this before people use Ayene's tiles, or don't know what to watch out for when resizing.


If there is an easy fix, I am all for it! =]


Thanks for posting this.


***********************edit***************************


tried it a few times - the on;y help I can get out of this is that it can give you a template for easily removing edges, but the color to alpha works on all the tiles and I haven't had time to figure that.
Here's how you would resize one file using GIMP:

  • Start GIMP, and open the file you want to resize.
  • In the Image menu, find the option called Scale Image...
  • A Scale Image dialog box will open. The parameters are as follows:
  • Width and Height: Type your new width or height. An MV-compatible image is 1.5 times the width and height of a VXAce-compatible image. For example, if you are resizing a sprite file that's 384x256, its new dimensions will be 576x384. (If the chain icon to the side of the Width and Height textboxes is linked together, then you only need to change one dimension, and the other will scale up to match.)
  • X resolution and Y resolution: Ignore these. Pixels per inch is only relevant to images intended for printing.
  • Interpolation: Select the algorithm that GIMP will use to "read between the lines" as it's translating your image to a different pixel count. Since the game I'm converting has a 16x16 retro look, I've been using "None" to keep the pixels chunky. A quick try of the other algorithms has me thinking that "Cubic" is probably your best bet for scaled-up images that look smooth but not blurry,
Then click the Scale button, export your scaled image to PNG in the corresponding folder of your MV project, and you're good to go! I hope that helps.EDIT: If you'd like a walkthrough for using BIMP to resize multiple files at once, let me know.
Is using BIMP similar to the methods above?
Is using BIMP similar to the methods above?
GIMP has a batch image tool called BIMP


http://registry.gimp.org/node/26259


You could use it to change a whole lotta tiles if the method was so good it cculd apply to all materials.


But this method is not ideal for non-retro stuff.


Better to resize to 3x and then cut in half.


eg. TileB


512 by 512


resize to


1536 by 1536


resize to


768 by 768


e.g. TileA3


512 x 384


resize to


1536 by 1152


resize to


768 x 576


I use Image > Scale > interpolation set to Sinc(Lasczos3) for the enlargement ad interpotion set to cubic for the reduction.


But as I said, it is not good for everything.
Thanks for the advice, GrandmaDeb. I was about to say that BIMP allows you to line up a series of multiple procedures on a batch of files, but it turns out a procedure series isn't allowed to have two operations of the same kind. (A needless restriction, if you ask me.) I guess if you found a series that works well for a lot of your files, you could line up two batch procedure series-es for your files.
Thank you for this awesome guide =) 
Thanks. I'll definitely will credit you if my game ever manages to be finished 😀
Maybe is not the right place to ask. But I use this method a lot of times to resize tiles, but never for sprites. Now, I tried to escale a SV sprite fromm 64x64 (standar) to 96x96. By using the MMC 192. The method works.. more or less. But I got a really weird effect on some areas of the sprite.

d7e28b8daa.png


The edge of the sprite looks like, well, you can see it. I don't know what can cause it. I'm not used to image edition, but I never see this before. This only affect black color. I tried change the black level, but that broke the entire image. Of course, when I resize to 96x96, the problem still here.

I use GIMP to edit.I parecciated any help or clue about this.
@Raine - can you please provide the sprite you are wanting to resize for me, I can check here if the problem happens to me as well.

@As for GIMP comments and problems - I can't really offer support for other programs as I only work with Photoshop, and this guide was made using Photoshop, I just stated that this method "should work in other programs", but I can't guarantee it.

@Transparent edges comments - it's expected as result of anti-aliasing (after all we are not resizing to a perfect number), please let me know if you are having noticeable problems in-game at normal zoom levels, and I will investigate further if it's a big deal.
@Raine - can you please provide the sprite you are wanting to resize for me, I can check here if the problem happens to me as well.
Of course. here is it.

s28chi.jpg
@Raine

I tried two methods here, check it out if you like a result.

Note that the sprite will never look the best with a resize, and in some cases, you may prefer to try waifu2x or another program/method.

1st pic - 300% nearest + 50% bilinear

2nd pic - 300% bicubic smoother + 50% bilinear

Spoiler
3amq.png


3amr.png
@Yurixy

Yeah. I use something similar, because I can't use the despeckle filter or I got that noise in the edge. Yours looks smoother than the one I used. Thanks a lot. I will try that combination you used.

Original thread: https://forums.rpgmakerweb.com/threads/resizing-tiles-for-mv.45746/