-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #478 from bcit-ci/feature/image
New Image Handling
- Loading branch information
Showing
17 changed files
with
2,265 additions
and
69 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php namespace Config; | ||
|
||
use CodeIgniter\Config\BaseConfig; | ||
|
||
class Images extends BaseConfig | ||
{ | ||
/** | ||
* Default handler used if no other handler is specified. | ||
* | ||
* @var string | ||
*/ | ||
public $defaultHandler = 'gd'; | ||
|
||
/** | ||
* The path to the image library. | ||
* Required for ImageMagick, GraphicsMagick, or NetPBM. | ||
* | ||
* @var string | ||
*/ | ||
public $libraryPath = '/usr/local/bin/convert'; | ||
|
||
/** | ||
* The available handler classes. | ||
* | ||
* @var array | ||
*/ | ||
public $handlers = [ | ||
'gd' => \CodeIgniter\Images\Handlers\GDHandler::class, | ||
'imagick' => \CodeIgniter\Images\Handlers\ImageMagickHandler::class, | ||
]; | ||
} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php namespace CodeIgniter\Images\Exceptions; | ||
|
||
class ImageException extends \RuntimeException{} |
Oops, something went wrong.