Sprite Sheet
Posted: Fri Jun 01, 2018 10:17 pm
I've 26 frames/images for do an animation for an entity: how can i merge them in a single frame?
viewtopic.php?f=34&t=5336&start=20#p335708DiegoPro77 wrote:I've 26 frames/images for do an animation for an entity: how can i merge them in a single frame?
You can also download the last verson of ImageMagick here: http://www.imagemagick.org/script/download.php#windowsDiegoPro77 wrote:It tells me that it can hurt my pc…
Code: Select all
montage "Input/*.png" -geometry +0+0 -tile4x8 -background rgba(0,0,0,0) -quality 100% spritesheet_4x8.png
Is your image higher than 2048 or wider than 2048? This script will crop so much as possible white (alpha?) space about your images:DiegoPro77 wrote:Ok, but now i've another problem: the game recognize the sprite sheet, but as a single photo, and it tells me this...
Code: Select all
magick "Input/*.png" -background none ^
( -clone 0--1 -layers merge ^
-set option:cropper "%%[@]" +delete ) ^
-crop %%[cropper] +repage ^
MIFF:- | magick montage MIFF:- -background none ^
-tile 4x8 -geometry +0+0 Output\best_spritesheet_4x8.png