diff options
Diffstat (limited to 'rules/html.lua')
-rw-r--r-- | rules/html.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rules/html.lua b/rules/html.lua index 0f26d1421..47ff528e8 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -38,7 +38,10 @@ local function check_html_image(task, min, max) local parent = tag:get_parent() if parent then if parent:get_type() == 'a' then - return true + -- do not trigger on small and unknown size images + if i['height'] + i['width'] >= 210 then + return true + end end end end |