SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/config/image.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2016 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 2 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. /**
  18.  * @package Image
  19.  *
  20.  * Driver name. Default: GD
  21.  */
  22. $config['driver'] = 'GD';
  23.  
  24. /**
  25.  * Driver parameters:
  26.  * ImageMagick - set the "directory" parameter to your ImageMagick installation directory
  27.  */
  28. $config['params'] = array();
  29.  
  30. /**
  31.  * Maximum size an image can be resized to before we emit an error
  32.  */
  33. $config['max_size'] = [
  34. 'width' => 2048,
  35. 'height' => 2048
  36. ];
  37.  
  38. /**
  39.  * Maximum dimensions to store 'original' version of uploaded image
  40.  *
  41.  * When a larger image is uploaded, the original is to be discarded and a shrunken copy stored instead
  42.  */
  43. $config['original_size'] = [
  44. 'width' => 2048,
  45. 'height' => 2048,
  46. ];
  47.