png resizing is broken
This commit is contained in:
parent
4400b385b3
commit
3477fe8c22
1 changed files with 2 additions and 1 deletions
|
@ -200,7 +200,8 @@ class ResizeImage extends SimpleExtension {
|
|||
switch ( $info[2] ) {
|
||||
case IMAGETYPE_GIF: $image = imagecreatefromgif($image_filename); break;
|
||||
case IMAGETYPE_JPEG: $image = imagecreatefromjpeg($image_filename); break;
|
||||
case IMAGETYPE_PNG: $image = imagecreatefrompng($image_filename); break;
|
||||
/* FIXME: PNG support seems to be broken.
|
||||
case IMAGETYPE_PNG: $image = imagecreatefrompng($image_filename); break;*/
|
||||
default:
|
||||
throw new ImageResizeException("Unsupported image type.");
|
||||
}
|
||||
|
|
Reference in a new issue