Bulk-generates optimal image filesizes for FurAffinity usage.
npm install fa-thumbs --saveModify run.bat so that it takes two arguments: an input directory, and an output directory.
node test.js "./input" "./output"
pauseOr modify test.js so that it takes the same two arguments for the required function. The first argument can be an array or string, and the second is an options object:
{
output: "/path/to/output/folder",
suffix: "_lowres",
recursive: false,
width: 1280,
height: 1280,
mime: "image/jpeg",
quality: 80
}outputis the path to the output folder where the scaled-down images will besuffixis the appendix to a filename string so that it's distinguished from the original resrecursiveis a Boolean for retrieving files in subfolders of the input directorywidthandheightare the preferred dimensions of the output imagesmimeis the image MIME type:"image/jpeg"or"image/png"qualityis the preferred JPEG quality of the output images
If options is a string, it is treated as the output value. All other values default if not included.