Skip to content

Instantly share code, notes, and snippets.

@kode54
Created May 26, 2013 00:56
Show Gist options
  • Save kode54/5651353 to your computer and use it in GitHub Desktop.
Save kode54/5651353 to your computer and use it in GitHub Desktop.
A simple batch script for single step flattening a series of delta frames converted from GIF89 animation to PNG.
@echo off
setlocal
set itemno=%1
set outno=%1
set /a outno+=1
SET itemno=0000%itemno%
SET itemno=%itemno:~-5%
SET outno=0000%outno%
SET outno=%outno:~-5%
convert out\xbox%itemno%.png -page +0+0 xbox%outno%.png -layers flatten out\xbox%outno%.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment