old_contents: # -*- coding: utf-8 -*-
  import os.path
  try:
      import settings
  except ImportError:
      settings = None
  
  REDIS_HOST = getattr(settings, 'REDIS_HOST', 'localhost')
  REDIS_PORT = getattr(settings, 'REDIS_PORT', 6379)
  REDIS_DB = getattr(settings, 'REDIS_DB', 0)
  DEFAULT_REDIS_QUEUE_KEY = getattr(settings, 'DEFAULT_REDIS_QUEUE_KEY', 'insight-reloaded')
  REDIS_QUEUE_KEYS = getattr(settings, 'REDIS_QUEUE_KEYS', [])
  
  if DEFAULT_REDIS_QUEUE_KEY not in REDIS_QUEUE_KEYS:
      REDIS_QUEUE_KEYS.append(DEFAULT_REDIS_QUEUE_KEY)
  
  
  ALLOWED_EXTENSIONS = getattr(settings, 'ALLOWED_EXTENSIONS', 
                               ['.pdf', '.jpeg', '.jpg', '.doc', '.docx', '.xls',
                                '.xlsx', '.odt', '.ods', '.ppt', '.pptx', '.odp',
                                '.png', '.gif'])
  
  PREVIEW_SIZES = getattr(settings, 'PREVIEW_SIZES', {'150': 'small', '750': 'normal', '1000': 'large'})
  CROP_SIZE = 12 # %
  
  PREFIX_URL = getattr(settings, 'PREFIX_URL', 'http://localhost/viewer_cache')
  DOCVIEWER_SUFFIX = getattr(settings, 'DOCVIEWER_SUFFIX', 'document_{size}_p{page}.png')
  TEMP_DIRECTORY = getattr(settings, 'TEMP_DIRECTORY', '/tmp')
  DESTINATION_ROOT = getattr(settings, 'DESTINATION_ROOT', os.path.join(TEMP_DIRECTORY, 'previews'))
  
new_contents: # -*- coding: utf-8 -*-
  import os.path
  try:
      import settings
  except ImportError:
      settings = None
  
  REDIS_HOST = getattr(settings, 'REDIS_HOST', 'localhost')
  REDIS_PORT = getattr(settings, 'REDIS_PORT', 6379)
  REDIS_DB = getattr(settings, 'REDIS_DB', 0)
  DEFAULT_REDIS_QUEUE_KEY = getattr(settings, 'DEFAULT_REDIS_QUEUE_KEY', 'insight-reloaded')
  REDIS_QUEUE_KEYS = getattr(settings, 'REDIS_QUEUE_KEYS', [])
  
  if DEFAULT_REDIS_QUEUE_KEY not in REDIS_QUEUE_KEYS:
      REDIS_QUEUE_KEYS.append(DEFAULT_REDIS_QUEUE_KEY)
  
  
  ALLOWED_EXTENSIONS = getattr(settings, 'ALLOWED_EXTENSIONS', 
                               ['.pdf', '.jpeg', '.jpg', '.doc', '.docx', '.xls',
                                '.xlsx', '.odt', '.ods', '.ppt', '.pptx', '.odp',
                                '.png', '.gif'])
  
  PREVIEW_SIZES = getattr(settings, 'PREVIEW_SIZES', {'150': 'small', '750': 'normal', '1000': 'large'})
  CROP_SIZE = getattr(settings, "CROP_SIZE", 12) # %
  
  PREFIX_URL = getattr(settings, 'PREFIX_URL', 'http://localhost/viewer_cache')
  DOCVIEWER_SUFFIX = getattr(settings, 'DOCVIEWER_SUFFIX', 'document_{size}_p{page}.png')
  TEMP_DIRECTORY = getattr(settings, 'TEMP_DIRECTORY', '/tmp')
  DESTINATION_ROOT = getattr(settings, 'DESTINATION_ROOT', os.path.join(TEMP_DIRECTORY, 'previews'))
  
subject: Add CROP_SIZE to settings