def __init__(self, source, width, height, dest=None, proc=None, *args,
                 **kwargs):
        self.source = source
        self.width = width
        self.height = height
        self.processor = get_processor(proc)(*args, **kwargs)
        if dest is None:
            dest = build_thumbnail_name(source, width, height, self.processor)
        self.dest = dest
        self.cache_dir = getattr(settings, 'CUDDLYBUDDLY_THUMBNAIL_CACHE', None)

        for var in ('width', 'height'):
            try:
                setattr(self, var, int(getattr(self, var)))
            except __HOLE__:
                raise ThumbnailException('Value supplied for \'%s\' is not an int' % var)
        if self.processor is None:
            raise ThumbnailException('There is no image processor available')

        self.generate()
dataset/ETHPy150Open kylemacfarlane/django-cb-thumbnail/src/cuddlybuddly/thumbnail/main.py/Thumbnail.__init__