<s> from thumbor . filters import BaseFilter , filter_method <EOL> from thumbor . ext . filters import _contrast <EOL> class Filter ( BaseFilter ) : <EOL> @ filter_method ( BaseFilter . Number ) <EOL> def contrast ( self , value ) : <EOL> mode , data = self . engine . image_data_as_rgb ( ) <EOL> imgdata = _contrast . apply ( mode , value , data ) <EOL> self . engine . set_image_data ( imgdata ) </s>
