68b8d46a2fef57d6ebed1af2f2457ec4b0244ca4,imagekit/processors.py,Transpose,process,#Any#Any#Any#Any#,151
Before Change
@classmethod
def process(cls, img, fmt, obj):
img = img.transpose(getattr(Image, cls.method))
return img, fmt
After Change
@classmethod
def process(cls, img, fmt, obj):
if cls.method == "auto":
orientation = Image.open(obj._imgfield.file)._getexif()[0x0112]
ops = cls.EXIF_ORIENTATION_STEPS[orientation]
else:
ops = [cls.method]
for method in ops:
img = img.transpose(getattr(Image, method))
return img, fmt
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: matthewwithanm/django-imagekit
Commit Name: 68b8d46a2fef57d6ebed1af2f2457ec4b0244ca4
Time: 2009-07-19
Author: justin@driscolldev.com
File Name: imagekit/processors.py
Class Name: Transpose
Method Name: process
Project Name: tensorflow/tensorboard
Commit Name: 0b5565152aceed3796445c855ce187118787c857
Time: 2017-12-18
Author: nfelt@users.noreply.github.com
File Name: tensorboard/backend/event_processing/plugin_event_accumulator.py
Class Name: EventAccumulator
Method Name: _Purge
Project Name: brian-team/brian2
Commit Name: b8f54018c4c935a4bdc8cb81cb1055ca9b4ae5e7
Time: 2015-12-01
Author: marcel.stimberg@inserm.fr
File Name: brian2/devices/device.py
Class Name:
Method Name: reset_device
Project Name: facebookresearch/pythia
Commit Name: 2f337387d6759627bae60284e7fa612268580724
Time: 2020-09-15
Author: vedanujg@gmail.com
File Name: mmf/models/mmf_transformer.py
Class Name: MMFTransformerEmbeddings
Method Name: forward