PHP Classes

File: app/Config/Image.php

Recommend this page to a friend!
  Classes of Steeven Lim   o2system   app/Config/Image.php   Download  
File: app/Config/Image.php
Role: Example script
Content type: text/plain
Description: Example script
Class: o2system
Start projects using the with O2System Framework
Author: By
Last change:
Date: 3 years ago
Size: 1,073 bytes
 

Contents

Class file image Download
<?php
/**
 * This file is part of the O2System PHP Framework package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author Steeve Andrian Salim
 * @copyright Copyright (c) Steeve Andrian Salim
 */

// ------------------------------------------------------------------------

use O2System\Image\DataStructures\Config;

// ------------------------------------------------------------------------

/**
 * Image Controller Configuration
 *
 * @see https://github.com/o2system/image/wiki
 *
 * @var \O2System\Image\DataStructures\Config
 */
$image = new Config([
   
'driver' => 'gd', // gd | imagick | gmagick
   
'maintainAspectRatio' => true,
   
'scaleDirective' => 'FIT', // FIT | UP | DOWN
   
'focus' => 'CENTER', // CENTER | NORTH | NORTHWEST | NORTHEAST | SOUTH | SOUTHWEST | SOUTHEAST | WEST | EAST
   
'orientation' => 'AUTO', // AUTO | LANDSCAPE |
   
'quality' => 100,
   
'cached' => false,
]);