GithubHelp home page GithubHelp logo

eneaentertainment / textureunpacker Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 6.0 218 KB

Unpack texture atlases created with TexturePacker (PixiJS, Phaser) and save them as individual images. Supports trimmed and rotated textures, too.

License: MIT License

HTML 74.19% JavaScript 25.81%
phaser pixijs texture unpacker

textureunpacker's People

Contributors

eneaentertainment avatar mp3com avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

textureunpacker's Issues

Add option to download all textures with one click

For atlases with a lot of textures, it's really tedious to download them one by one. It might be nice to use jsZip or something similar to combine all the textures into one easy download.


My hacky solution to not have to click endlessly was to write a few lines of JS to automatically click every link. If anyone else wants it, just open your browser's dev tools and paste this in the JS console:

var links = document.querySelectorAll("#destContent a");
var i = 0;
function clicky() {
  links[i++].click();
  if (i < links.length) { setTimeout(clicky, 100); }
}
clicky();

If you wanted, you could actually just add a "Download All" button that calls my code; it'd just be a bit janky.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.