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

Expose invalid/corrupt image count rule in the ImageInfo Plugin #18

Open
bitsikas opened this issue Jan 25, 2016 · 0 comments
Open

Expose invalid/corrupt image count rule in the ImageInfo Plugin #18

bitsikas opened this issue Jan 25, 2016 · 0 comments

Comments

@bitsikas
Copy link
Contributor

We could add an eval rule for invalid/corrupt images.

We already store the total count and the per image subtype count in the local variables of the plugin (set_local/get_local) so what's needed is the actual eval rule that checks them

as parameters it would need the type of image or "all" and the min/max count we want to check for

example rules

body     MIN_THREE_CORRUPTED                     eval:image_invalid_count('all','3')
body     BETWEEN_3_AND_5_CORRUPTED_GIFS          eval:image_invalid_count('gif','3','5')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants