swfjpg

tool for extracting masked JPEGs from swfs, because swfextract can't.

Usage no npm install needed!

<script type="module">
  import swfjpg from 'https://cdn.skypack.dev/swfjpg';
</script>

README

swfjpg

tool for extracting masked JPEGs from swfs, because swfextract can't.

cli usage

Usage: swfjpg [options] <files...>
Options:
-o <string>
    Specifies output directory
-N
    Don't create subdirectories

node usage

var swfjpg = require("swfjpg")
                          //buffer, string, number, function
swfjpg("path/to.swf", function(data, type, id, callback) {
  // data parsed
  fs.writeFile(id + "." + id, data, callback);
  console.log("Saving", id, "which is a", type);
}, function(error) {
  // done
  console.log("Parsed all JPGs!");
});

installation

requires npm

stable

npm install -g swfjpg

edge

git clone https://github.com/yukimono/swfjpg.git
cd swfjpg
npm install -g