Texture Atlas Extractor ((install)) Today
A texture atlas extractor is a software tool or script designed to reverse the atlasing process. It takes a composite image (the atlas) plus its corresponding metadata data file (usually JSON, XML, or .atlas ) and automatically slices, crops, and exports the original individual textures.
for frame_name, frame_data in data['frames'].items(): # Get rectangle from atlas x = frame_data['frame']['x'] y = frame_data['frame']['y'] w = frame_data['frame']['w'] h = frame_data['frame']['h'] # Extract sprite sprite = atlas.crop((x, y, x+w, y+h)) # Handle rotation (if flag exists) if frame_data.get('rotated', False): sprite = sprite.rotate(90, expand=True) # Save individual file sprite.save(f"{output_dir}/{frame_name}.png") extract_atlas("characters.png", "characters.json", "./extracted_sprites") texture atlas extractor
The extractor checks the offset values. If a sprite was trimmed (e.g., orig is 100x100 but size is 60x60), the extractor places the 60x60 image in the center of a 100x100 transparent canvas, offset by the stored vector. A texture atlas extractor is a software tool
Emerging AI tools (2024-2025) use computer vision to detect grid boundaries automatically. Tools like and Unpackr use convolutional neural networks (CNNs) to identify padding, detect repeating patterns, and separate sprites even without a .atlas file. If a sprite was trimmed (e
Whether you are a modder looking to customize a game, a developer recovering lost work, or a student studying animation pipelines, mastering the extraction workflow saves hours of tedious manual cropping.
Note: This script ignores trimming offsets for brevity; a production script must include offset math. Traditional texture atlas extractors rely 100% on metadata files. But what if the metadata is corrupt or missing?