You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What about the idea of an input filter? Only the files that pass the filter would be processed and resized, and appear in the galleries. It could be a new CLI argument, parsed with https://www.npmjs.com/package/safe-eval:
// filter.jsmodule.exports=(file)=>{// based on the file pathreturnfile.path.match(/holidays/)// or based on metadatareturnfile.meta.favourite===truereturnfile.meta.rating>4returnfile.meta.keywords.include('holidays')}
The text was updated successfully, but these errors were encountered:
What about the idea of an input filter? Only the files that pass the filter would be processed and resized, and appear in the galleries. It could be a new CLI argument, parsed with https://www.npmjs.com/package/safe-eval:
--filter-input "file => file.meta.favourite === true"
Or maybe passing the path to a Node.js module:
--filter-input-path ~/filter.js
And the filter script can look like:
The text was updated successfully, but these errors were encountered: