Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom naming function setting #54

Open
Zirafnik opened this issue Oct 11, 2024 · 0 comments
Open

Custom naming function setting #54

Zirafnik opened this issue Oct 11, 2024 · 0 comments

Comments

@Zirafnik
Copy link

Zirafnik commented Oct 11, 2024

I propose another setting to be added for the option of providing a custom naming function. This function would allow you to create custom image names, which completely override the outputFileMask (see #51) and the numbering system (see #52).

// Settings object
{
   namingFunction: (num) => {
       // do something and return a custom string
       return `squared_numbers_${Math.sqrt(num)}`;
   }
}

// Output for 2nd image: squared_numbers_4.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant