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

Reject File if Larger than Original - maybe only if bigger then % #329

Open
CurlyFlow opened this issue Mar 18, 2023 · 1 comment
Open
Labels
status:awaiting-triage type:enhancement New feature or request for feature enhancement

Comments

@CurlyFlow
Copy link

Is your feature request related to a problem?

Reject File if Larger than Original rejects every file which is 1kb bigger then the original...

What is your feature request?

What about a config option to say you dont care if its 5% bigger or 10%?
I mean i personally only installed this option because some files get 3x (2,9gb before and 9gb after) after conversion, i dont care if its some % bigger.

Are there any workarounds?

No response

Additional Context

No response

@CurlyFlow CurlyFlow added status:awaiting-triage type:enhancement New feature or request for feature enhancement labels Mar 18, 2023
@yajrendrag
Copy link
Contributor

see my private repo - there is a plugin named reject_files_outside_pct_range_of_original that does this. you can specify a percentage range - so a lower bound and upper bound. so if you set the percentage range to be 50% to 105%, it will rejct if it's less than 50% of size or greater than 105%. Otherwise works the same as the reject file if larger than original.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:awaiting-triage type:enhancement New feature or request for feature enhancement
Projects
None yet
Development

No branches or pull requests

2 participants