image.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. /**
  3. * Part of the Fuel framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. /**
  13. * NOTICE:
  14. *
  15. * If you need to make modifications to the default configuration, copy
  16. * this file to your app/config folder, and make them in there.
  17. *
  18. * This will allow you to upgrade fuel without losing your custom config.
  19. */
  20. return array(
  21. /**
  22. * The driver to be used. Currently gd, imagemagick or imagick
  23. */
  24. 'driver' => 'gd',
  25. /**
  26. * Sets the background color of the image.
  27. *
  28. * Set to null for a transparent background.
  29. */
  30. 'bgcolor' => null,
  31. /**
  32. * Sets the transparency of any watermark added to the image.
  33. */
  34. 'watermark_alpha' => 75,
  35. /**
  36. * The quality of the image being saved or output, if the format supports it.
  37. */
  38. 'quality' => 100,
  39. /**
  40. * Lets you use a default container for images. Override by Image::output('png') or Image::save('file.png')
  41. *
  42. * Examples: png, bmp, jpeg, ...
  43. */
  44. 'filetype' => null,
  45. /**
  46. * The install location of the imagemagick executables.
  47. */
  48. 'imagemagick_dir' => '/usr/bin/',
  49. /**
  50. * Temporary directory to store image files in that are being edited.
  51. */
  52. 'temp_dir' => APPPATH.'tmp'.DS,
  53. /**
  54. * The string of text to append to the image.
  55. */
  56. 'temp_append' => 'fuelimage_',
  57. /**
  58. * Sets if the queue should be cleared after a save(), save_pa(), or output().
  59. */
  60. 'clear_queue' => true,
  61. /**
  62. * Determines whether to automatically reload the image (false) or keep the changes (true) when saving or outputting.
  63. */
  64. 'persistence' => false,
  65. /**
  66. * Used to debug the class, defaults to false.
  67. */
  68. 'debug' => false,
  69. /**
  70. * These presets allow you to call controlled manipulations.
  71. */
  72. 'presets' => array(
  73. /**
  74. * This shows an example of how to add preset manipulations
  75. * to an image.
  76. *
  77. * Note that config values here override the current configuration.
  78. *
  79. * Driver cannot be changed in here.
  80. */
  81. 'example' => array(
  82. 'quality' => 100,
  83. 'bgcolor' => null,
  84. 'actions' => array(
  85. array('crop_resize', 200, 200),
  86. array('border', 20, "#f00"),
  87. array('rounded', 10),
  88. array('output', 'png')
  89. )
  90. )
  91. )
  92. );