Free Image Packer/Icon Scaler Script

Hi. I’m experimenting with lua and Corona and as part of these experimentations I’ve written a general image packer / icon scaler in lua that can run either from the command line, or can be called as a library if people like automated build systems. 

It does three things ; it packs a collection of images into a sprite sheet and generates the lua/png files, it converts an SVG file to Icon files in the dozen or so sizes needed for Apple/Android and it scales a file to the two main launch image sizes. It’s in lua so it is extendable or tweakable as required.

The heavy lifting is done by GraphicsMagick (image manipulation) and svg2png (SVG manipulation) and the program is effectively a wrapper for them with the packing/scaling code built on top. It is pretty easy to change it to use ImageMagick or Inkscape or whatever as their interfaces are encapsulated.

It is written on a Mac ; I can’t see why it wouldn’t work under Windows (paths may need to be changed, perhaps) but I haven’t tried it.

http://coronadev.blogspot.co.uk