Skip to content

Commit

Permalink
add jpe extension as IMAGETYPE_JPEG
Browse files Browse the repository at this point in the history
  • Loading branch information
enov committed Nov 28, 2014
1 parent 34de104 commit c8d7dc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions classes/Kohana/Image/GD.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ protected function _save_function($extension, & $quality)
switch (strtolower($extension))
{
case 'jpg':
case 'jpe':
case 'jpeg':
// Save a JPG file
$save = 'imagejpeg';
Expand Down
1 change: 1 addition & 0 deletions classes/Kohana/Image/Imagick.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ protected function _get_imagetype($extension)
switch ($format)
{
case 'jpg':
case 'jpe':
case 'jpeg':
$type = IMAGETYPE_JPEG;
break;
Expand Down

0 comments on commit c8d7dc4

Please sign in to comment.