ce7353b0bd711769bae521bbb51acca85cf77460,imagekit/processors/resize.py,Fill,process,#Fill#Any#,47

Before Change



    def process(self, img):
        original_width, original_height = img.size
        ratio = max(float(self.width) / original_width,
                float(self.height) / original_height)
        new_width, new_height = (int(original_width * ratio),
                int(original_height * ratio))
        img = img.resize((new_width, new_height), Image.ANTIALIAS)
        return crop.Crop(self.width, self.height,
                anchor=self.anchor).process(img)

After Change


        self.anchor = anchor

    def process(self, img):
        img = Cover(self.width, self.height).process(img)
        return crop.Crop(self.width, self.height,
                anchor=self.anchor).process(img)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: matthewwithanm/django-imagekit
Commit Name: ce7353b0bd711769bae521bbb51acca85cf77460
Time: 2012-02-11
Author: matthew@exanimo.com
File Name: imagekit/processors/resize.py
Class Name: Fill
Method Name: process


Project Name: matthewwithanm/django-imagekit
Commit Name: b073868bb740f0b9e84da045c412cac0cad4b9d2
Time: 2012-02-17
Author: jan@netrebel.de
File Name: imagekit/processors/resize.py
Class Name: Mat
Method Name: process


Project Name: matthewwithanm/django-imagekit
Commit Name: 09ecbae1437ca9f394eb236ca7198d4842682720
Time: 2012-02-17
Author: jan@netrebel.de
File Name: imagekit/processors/resize.py
Class Name: Fit
Method Name: process


Project Name: matthewwithanm/django-imagekit
Commit Name: 4278a950019d85260d7a6727dd0752ffd55d6d17
Time: 2012-02-11
Author: matthew@exanimo.com
File Name: imagekit/processors/crop.py
Class Name: Crop
Method Name: process