timthumb.php

Classes

timthumb

Constants

VERSION

VERSION = '2.8.13'

DEBUG_ON

DEBUG_ON = false

DEBUG_LEVEL

DEBUG_LEVEL = 1

MEMORY_LIMIT

MEMORY_LIMIT = '30M'

BLOCK_EXTERNAL_LEECHERS

BLOCK_EXTERNAL_LEECHERS = false

DISPLAY_ERROR_MESSAGES

DISPLAY_ERROR_MESSAGES = true

ALLOW_EXTERNAL

ALLOW_EXTERNAL = TRUE

ALLOW_ALL_EXTERNAL_SITES

ALLOW_ALL_EXTERNAL_SITES = true

FILE_CACHE_ENABLED

FILE_CACHE_ENABLED = TRUE

FILE_CACHE_TIME_BETWEEN_CLEANS

FILE_CACHE_TIME_BETWEEN_CLEANS = 86400

FILE_CACHE_MAX_FILE_AGE

FILE_CACHE_MAX_FILE_AGE = 86400

FILE_CACHE_SUFFIX

FILE_CACHE_SUFFIX = '.timthumb.txt'

FILE_CACHE_PREFIX

FILE_CACHE_PREFIX = 'timthumb'

FILE_CACHE_DIRECTORY

FILE_CACHE_DIRECTORY = './cache'

MAX_FILE_SIZE

MAX_FILE_SIZE = 10485760

CURL_TIMEOUT

CURL_TIMEOUT = 20

WAIT_BETWEEN_FETCH_ERRORS

WAIT_BETWEEN_FETCH_ERRORS = 3600

BROWSER_CACHE_MAX_AGE

BROWSER_CACHE_MAX_AGE = 864000

BROWSER_CACHE_DISABLE

BROWSER_CACHE_DISABLE = false

MAX_WIDTH

MAX_WIDTH = 1500

MAX_HEIGHT

MAX_HEIGHT = 1500

NOT_FOUND_IMAGE

NOT_FOUND_IMAGE = ''

ERROR_IMAGE

ERROR_IMAGE = ''

PNG_IS_TRANSPARENT

PNG_IS_TRANSPARENT = FALSE

DEFAULT_Q

DEFAULT_Q = 90

DEFAULT_ZC

DEFAULT_ZC = 1

DEFAULT_F

DEFAULT_F = ''

DEFAULT_S

DEFAULT_S = 0

DEFAULT_CC

DEFAULT_CC = 'ffffff'

DEFAULT_WIDTH

DEFAULT_WIDTH = 100

DEFAULT_HEIGHT

DEFAULT_HEIGHT = 100

OPTIPNG_ENABLED

OPTIPNG_ENABLED = false

OPTIPNG_PATH

OPTIPNG_PATH = '/usr/bin/optipng'

PNGCRUSH_ENABLED

PNGCRUSH_ENABLED = false

PNGCRUSH_PATH

PNGCRUSH_PATH = '/usr/bin/pngcrush'

WEBSHOT_ENABLED

WEBSHOT_ENABLED = false

WEBSHOT_CUTYCAPT

WEBSHOT_CUTYCAPT = '/usr/local/bin/CutyCapt'

WEBSHOT_XVFB

WEBSHOT_XVFB = '/usr/bin/xvfb-run'

WEBSHOT_SCREEN_X

WEBSHOT_SCREEN_X = '1024'

WEBSHOT_SCREEN_Y

WEBSHOT_SCREEN_Y = '768'

WEBSHOT_COLOR_DEPTH

WEBSHOT_COLOR_DEPTH = '24'

WEBSHOT_IMAGE_FORMAT

WEBSHOT_IMAGE_FORMAT = 'png'

WEBSHOT_TIMEOUT

WEBSHOT_TIMEOUT = '20'

WEBSHOT_USER_AGENT

WEBSHOT_USER_AGENT = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18"

WEBSHOT_JAVASCRIPT_ON

WEBSHOT_JAVASCRIPT_ON = true

WEBSHOT_JAVA_ON

WEBSHOT_JAVA_ON = false

WEBSHOT_PLUGINS_ON

WEBSHOT_PLUGINS_ON = true

WEBSHOT_PROXY

WEBSHOT_PROXY = ''

WEBSHOT_XVFB_RUNNING

WEBSHOT_XVFB_RUNNING = false