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

Set output postfix for processing directories #59

Open
nicothed opened this issue Jun 8, 2024 · 1 comment
Open

Set output postfix for processing directories #59

nicothed opened this issue Jun 8, 2024 · 1 comment

Comments

@nicothed
Copy link

nicothed commented Jun 8, 2024

First, thank you for an amazing package!

I'm trying to process an entire directory like this:
deface "pics/" --replacewith mosaic --mosaicsize 20 --thres 0.4 --output "_mosaic20.jpg"

I tried different parameters and would like to use a different postfix for them (e.g. "mosaic20"). The issue is that the output path will be the same for all images (or I'm not understanding something).
IMO, it would make a lot of sense to add a parameter "postfix" that simply adds a specified postfix to all outputs.

@StealUrKill
Copy link

Don't add a --output. By doing so it will add a unique name for each one.

Example Input:
Test.jpg
Test2.jpg

Example output:
Test_anonymized.jpg
Test2_anonymized.jpg

See code below.

opath = f'{root}_anonymized{ext}'

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

2 participants