Say I have a PNG image file called image.png that I edit pixel by pixel that is 16 pixels wide by 16 pixels tall (16x16).

For my usage purposes, I need it to eventually be 3 times in size (i.e. 48 x 48) scaled using the nearest-neighbour scaling algorithm (all hard edges; no blurriness).

Currently, I do this manually and export two versions of the same asset, image.png (original) and image@3x.png (48 x 48), every time I make changes, which is somewhat of a hassle. Is there a way to automate my system to generate image@3x.png every time I save changes to image.png? (I am on a Mac).

I am using Gimp.

  • Yes, conceptually. But the real reason why I need the asset to physically be 3x in size is due to the requirements of the framework I am using these assets in. More context: I'm designing a game in RPG maker MV which requires tiles to be 48x48. I am designing my graphics with a 16x16 aesthetic, so I just need to blow then up to 3x. – Vincent Lo Nov 20 '16 at 7:34
  • Yeh I just noticed this was tagged pixel-art, in which case this is obviously what you want to do :) (deleted my comment because it isn't really relevant) – Cai Nov 20 '16 at 7:35
  • 1
    What software are you using? Or are you asking for a recommendation of software that could do this? – Cai Nov 20 '16 at 7:47
  • I'm using GIMP. Would be preferable to not have to use another software. Wondering if I could simply include a script in the same folder that executes whenever I save changes to certain files. – Vincent Lo Nov 21 '16 at 2:53
  • You might want to have a look at the -magnify option in Imagemagick. I don't have a recent install of IM handy to test, but that sounds like what you are trying to do. – Scribblemacher Nov 23 '16 at 15:15

I realized too late you wanted a workflow for GIMP but I wrote it for photoshop since you were using the notation to generate image assets.

Open your preferences with Ctrl + K or from the edit menu

Change the default image interpolation to Nearest Neighbor

Generate image assets should now use Nearest neighbor scaling. All that is left is to set up your layers to export automatically using generate image assets,(200% layername.png)

enter image description here

Version: Photoshop CC 2017

  • Thanks. I think I should be able to switch over to Photoshop. – Vincent Lo Nov 28 '16 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.