title: ResizeToFit(width=max(source_pic_width, 750)
body: <p><strong>django-imagekit==4.0</strong></p>
  
  <p>I have organized something like this:</p>
  
  <pre><code>class Image(CommonUrlMethodsMixin, GeneralModel):
  
      pic = models.ImageField(verbose_name=_("Image"), upload_to=get_upload_path)
      pic_xs = ImageSpecField(source='pic',
                                   processors=[ResizeToFit(width=500)],
                                   format='JPEG',
                                   options={'quality': 60},
                                   autoconvert=True)
      pic_sm = ImageSpecField(source='pic',
                                   processors=[ResizeToFit(width=750)],
                                   format='JPEG',
                                   options={'quality': 60})
      pic_md = ImageSpecField(source='pic',
                                   processors=[ResizeToFit(width=970)],
                                   format='JPEG',
                                   options={'quality': 60})
      pic_lg = ImageSpecField(source='pic',
                                   processors=[ResizeToFit(width=1170)],
                                   format='JPEG',
                                   options={'quality': 60})
  </code></pre>
  
  <p>The problem is that a user can upload a small picture. Like 800 px wide. In this case there seems to be is no reason to stretch it to 970 and 1170. Let it be just original 800.</p>
  
  <p>In this case I would prefer something like ResizeToFit(width=max(self.pic.width, 750). But I have failed to do that. </p>
  
  <p>Could you explain this matter to me?</p>