PNG Resize

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
coyoteelabs
Engineer
Engineer
Posts: 27
Joined: 07 Aug 2006 09:52
Location: Romania

PNG Resize

Post by coyoteelabs »

PNG Resize is a tool designed to help the creation of z1 and z2 sprites from z0 sprites.

The app will perform the following actions based on png sprite information:
* add extra empty lines (left / right / top / bottom) depending on the sprite size and offsets (as described here by maquinista)
* add extra empty lines to be dividable by 4 for z2 sprites
* automatically adjust sprite offsets for the new zoom level.
* if no output name is given, it will generate proper name based on input sprite (ex: 2604_z0.png would result in 2604_z1.png or 2604_z2.png)
PNG Crop Usage screen (no parameters passed)
PNG Crop Usage screen (no parameters passed)
pngresize.png (7.17 KiB) Viewed 2864 times
License: GPL v2 or later

Special thanks to maquinista for the idea and initial testing.
Attachments
pngresize_v0.1.zip
PNG Resize v0.1 binaries
(148.16 KiB) Downloaded 182 times
pngresize_source_v0.1.zip
PNG Resize - Delphi 2010 GPL'd source code
(313.74 KiB) Downloaded 147 times

Visual PNG codec - Win32 GUI based alternative for PNG codec
PNG crop - Win32 Console based tool for PNG cropping
PNG Resize - Win32 Console based tool for PNG Resizing (z0 -> z1 / z2)
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: PNG Resize

Post by Zephyris »

Nicely done, thankyou for another really useful tool!
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 8 guests