TexturePacker.Lib 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TexturePacker.Lib --version 1.0.0
NuGet\Install-Package TexturePacker.Lib -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TexturePacker.Lib" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TexturePacker.Lib --version 1.0.0
#r "nuget: TexturePacker.Lib, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TexturePacker.Lib as a Cake Addin
#addin nuget:?package=TexturePacker.Lib&version=1.0.0

// Install TexturePacker.Lib as a Cake Tool
#tool nuget:?package=TexturePacker.Lib&version=1.0.0

TexturePacker

Requires .NET 4.6 and C# 7

Small C# app that packs all the png from a folder int a set of square atlas textures

Features

  • Supports download by specifing a folder by CLI.
  • It takes care of current folder hierarchy.

Supported platforms

Windows and Linux (Mono).

Usage

Usage: TexturePacker -sp xxx -ft xxx -o xxx [-s xxx] [-b x] [-d] -sp | --sourcepath : folder to recursively scan for textures to pack -ft | --filetype : types of textures to pack (*.png only for now) -o | --output : name of the atlas file to generate -s | --size : size of 1 side of the atlas file in pixels. Default = 1024 -b | --border : nb of pixels between textures in the atlas. Default = 0 -d | --debug : output debug info in the atlas

Ex: TexturePacker -sp C:\Temp\Textures -ft *.png -o C:\Temp\atlas.txt -s 512 -b 2 --debug

Packer script

In folder scripts you can see packer.cmd a Windows Shell script including an example.

Issues

Having issues? Just report in the issue section. Thanks for the feedback!

Contribute

Fork this repository, make your changes and then issue a pull request. If you find bugs or have new ideas that you do not want to implement yourself, file a bug report.

Disclaimer

Currently using serveral classes (Point, Rectangle && Size) from Unity-WinForms for ForUnity build configuration mode. Thanks to @Meragon!

Become a patron, by simply clicking on this button (very appreciated!):

alternate text is missing from this package README image

... Or if you prefer a one-time donation:

alternate text is missing from this package README image

Copyright (c) 2019 z3nth10n (United Teamwork Association).

License: MIT

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on TexturePacker.Lib:

Package Downloads
uzLib.Lite

The Lite version of my paid uzLib (Unity3D) API used as dependency of my open-source repos.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 684 8/30/2019
1.0.1 498 6/20/2019
1.0.0 569 6/6/2019

Initial release.