0
\$\begingroup\$

I am using TexturePacker as tool to pack my 2D sprites, it is good but it doesn't provide the possibility to scale individual sprites to a specific scale.

I am wondering whether there is any good tool or command line to scale the files in the original folder without having to use TexturePacker.

What I am trying to do is to fix some scaling errors that the illustrator that produced the files did without having to re-scale/fix things using Photoshop that is more time expensive.

\$\endgroup\$
4
\$\begingroup\$

You probably want the ImageMagick Convert Command-Line Tool:

It is very easy to manipulate images, for example to resize:

convert input.png -resize 200% output.png
\$\endgroup\$
1
\$\begingroup\$

Ok I don't know exactly what the problem is. First if the sprites are small (16x16 or 32x32), you want to use a proper editing tool anyway. At these resolutions scaling will almost always look very ugly.

Now to the solution: ImageMagick

ImageMagick is a command line tool and combined with a small shell/batch script you can convert, resize or whatever lots of images in a batch.

Here is the documentation on resize

Here is a forum thread discussing your program with some example batch scripts.

\$\endgroup\$

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