This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; |