Skip to content

Instantly share code, notes, and snippets.

STORAGE = 'thumbor.storages.redis_storage'
# ALLOW_UNSAFE_URL = True
AUTO_WEBP = True
DETECTORS = [ 'thumbor.detectors.face_detector', 'thumbor.detectors.feature_detector' ]
OPTIMIZERS = ['thumbor.optimizers.jpegtran', 'thumbor.optimizers.gifv']
MAX_AGE = 30 * 24 * 60 * 60
FFMPEG_PATH = '/usr/bin/avconv'
## Insert private stuff next:
<?php
/**
* an example of how to read huge XML files relatively quickly and efficiently
* using a few core PHP libraries.
*
*/
// Assume your file is very large, 140MB or somethig like that
$fn = __DIR__ . '/some_file.xml';