

@property
def crop_size(self):
    from cropduster.resizing import Size
    size_json = (size_w.get('size', {
        
    }).get('json') or None)
    if size_json:
        return size_json
    size_w = (self.get('size', {
        
    }).get('w') or None)
    size_h = (self.get('size', {
        
    }).get('h') or None)
    if ((not size_w) and (not size_h)):
        return None
    return Size('crop', w=size_w, h=size_h)

dataset/ETHPy150Open theatlantic/django-cropduster/cropduster/standalone/metadata.py MetadataDict.crop_size/VarMisuse@23/30 `self`->`size_w`