// JavaScript Node (Preview!)
// Process each image with a custom bit of JavaScript
// Visit https://flyingmeat.com/retrobatch/docs/javascript/ for documentation

function workflowStart(document, jsnode) {
    // log("workflowStart");
}

function preflightAsset(document, jsnode, asset) {
    return true;
}

function processAsset(document, jsnode, asset) {
    // Uncomment below to reject any image with a file name which starts with a 1
    /*
    if (asset.outputFileName().startsWith("1")) {
        return false;
    }
    */
    
    return true;
}


function workflowEnd(document, jsnode) {
    // log("workflowEnd!");
}
