GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vonhoff/Animation2Tilemap: A tool that converts a GIF to tilemap

This repository was archived by the owner on Jul 3, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

161 Commits
161 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
Animation2Tilemap.Test
Animation2Tilemap.Test
 
 
Animation2Tilemap
Animation2Tilemap
 
 
Resources
Resources
 
 
.gitignore
.gitignore
 
 
Animation2Tilemap.sln
Animation2Tilemap.sln
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Animation2Tilemap

workflow version license

Animation2Tilemap is a tool that converts images or GIF animations into tilemaps and tilesets, compatible with Tiled and other tile-based game development tools.

Features

  • Wide Format Support - Process PNG, BMP, GIF, JPEG, PBM, TIFF, TGA, and WebP images
  • Animation Detection - Automatically convert animations from folders or multi-frame images
  • Tileset Generation - Create optimized animated tilesets with duplicate tile detection
  • Tilemap Generation - Generate complete tilemaps that recreate your original animations
  • Advanced Customization - Control tile size, transparency settings, and frame timing

Limitations

  • Only orthographic maps are supported at this time

Example

Convert a GIF animation into a tileset and tilemap:

From To
Input

Getting Started

Installation

  1. Ensure you have .NET 10 runtime installed.
  2. Download the latest release from the releases page.
  3. Extract the zip file to your preferred location.

Usage

animation2tilemap -i <input file/folder> -o <output folder>

For a full list of options, use:

animation2tilemap --help

How It Works

It starts by loading the input, which can be a single image, a multi-frame file (such as a GIF), or a folder of images. Multi-frame files are automatically treated as animations. When processing a folder where all images have the same dimensions, they are assumed to be animation frames; confirmation is requested unless the --assume-animation option is used.

Next, the tileset factory divides each frame into tiles and uses image hashing to track unique tiles at each grid position, ensuring that only unique tiles are stored for a compact tileset. For each grid position, a unique identifier is generated to represent the sequence of tiles across frames, capturing any tile animation patterns.

Finally, the tilemap factory constructs a tilemap that references the generated tileset, creating a map layer that reflects the original frame layout. It then uses the calculated sequence IDs to assign the correct animated tile ID to each grid position, reconstructing the original animation.

Related Projects

For converting tilemaps to GIFs, check out Tilemap2Animation.

Support and Contribute

If you find value in this project, there are several ways you can contribute:

  • Give the project a star on GitHub.
  • Support the project through GitHub Sponsors.
  • Improve documentation, report bugs, or submit pull requests.

License

Animation2Tilemap is open-source software licensed under the MIT License.

About

A tool that converts a GIF to tilemap

Topics

game-developmentgamedevgeneratortiledtiled-map-editortilemaptilemap-animationstilemap-editortilemapstilesettilesets

Resources

Readme
MIT license
Activity

Stars

6 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.