Skip to content

Instantly share code, notes, and snippets.

@erinlin
Last active August 29, 2015 14:08
Show Gist options
  • Save erinlin/826294ceb46616ed0277 to your computer and use it in GitHub Desktop.
Save erinlin/826294ceb46616ed0277 to your computer and use it in GitHub Desktop.
TexturePacker: Batch converting images to RGBA4444 for autoSD
find <images folder> -name \*.png | sed 's/\.png//g' | \
xargs -I % -n 1 TexturePacker %.png \
--sheet %{v}.png \
--data dummy{v}.plist \
--algorithm Basic \
--allow-free-size \
--max-width 4096 \
--max-height 4096 \
--size-constraints AnySize \
--no-trim \
--opt RGBA4444 \
--dither-fs \
--border-padding 0 \
--shape-padding 0 \
--inner-padding 0 \
--extrude 0 \
--variant 1:@2x \
--variant 0.5:
rm -r dummy*.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment