code: def save(self, name, content, *args, **kwargs):
          
          options = getattr(self.field, 'resize_source', None)
          if options:
              if 'quality' not in options:
                  options['quality'] = self.thumbnail_quality
              content = Thumbnailer(content, name).generate_thumbnail(options)
              # If the generated extension differs from the original, use it
              # instead.
              orig_name, ext = os.path.splitext(name)
              generated_ext = os.path.splitext(content.name)[1]
              if generated_ext.lower() != ext.lower():
                  name = orig_name + generated_ext
          super(ThumbnailerImageFieldFile, self).save(name, content, *args,
                                                      **kwargs)
docs: Save the image.
  
          The image will be resized down using a ``ThumbnailField`` if
          ``resize_source`` (a dictionary of thumbnail options) is provided by
          the field.