parameters: ()
docstring: Creates image minatures and cropped background images for original files on the server.
docstring_summary: Creates image minatures and cropped background images for original files on the server.
docstring_tokens: Creates image minatures and cropped background images for original files on the server .
function: def fix_images():
      """ Creates image minatures and cropped background images for original files on the server."""
      import re
      from django.conf import settings
  
      max_width, max_height = settings.BACKGROUND_IMAGE_SIZE
      dirname = os.path.join(settings.BASE_DIR, 'media/img/locations')
      for filename in os.listdir(dirname):
          if not re.match(r'\w+_\d+', filename):
              im = ImageManager(os.path.join(dirname, filename), dirname)
              im.fixed_thumb(max_width, max_height)
function_tokens: def fix_images ( ) : import re from django . conf import settings max_width , max_height = settings . BACKGROUND_IMAGE_SIZE dirname = os . path . join ( settings . BASE_DIR , 'media/img/locations' ) for filename in os . listdir ( dirname ) : if not re . match ( r'\w+_\d+' , filename ) : im = ImageManager ( os . path . join ( dirname , filename ) , dirname ) im . fixed_thumb ( max_width , max_height )