Bureaucrats, coding, Administrators
2,634
edits
m (→Implement {{tl|Dictionary}}: +Characters dictionary) |
|||
Line 292: | Line 292: | ||
class imageCrushFilter: | class imageCrushFilter: | ||
def __init__(self): | def __init__(self): | ||
print 'Initialized' | |||
self.minRatio = 10 # Compression ratio threshold | self.minRatio = 10 # Compression ratio threshold | ||
self.minByteDiff = 2048 # Byte difference threshold | self.minByteDiff = 2048 # Byte difference threshold | ||
Line 325: | Line 326: | ||
pass | pass | ||
def __call__(self, content, article, **kwargs): | def __call__(self, content, article, **kwargs): | ||
print 'Called on', article | |||
title = u(article.title).lower() | title = u(article.title).lower() | ||
if title[-4:] == '.png': | if title[-4:] == '.png': |