

def save(self, *args, **kwargs):
    self.has_all_mandatory_data = self._check_validity()
    try:
        self.file.seek(0)
        (self._width, self._height) = PILImage.open(self.file).size
    except Exception:
        pass
    super(BaseImage, self).save(*args, **kwargs)

dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/module/media/models/abstract.py BaseImage.save/original