Cleanup for attach_mod (#1210)

* Cleanup for attach_mod

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-12-16 14:23:17 +07:00 committed by GitHub
commit 381d9b728f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 17 deletions

View file

@ -67,10 +67,6 @@ function get_supported_image_types($type)
$new_type = ($format & IMG_GIF) ? IMG_GIF : 0;
break;
case IMAGETYPE_JPEG:
case IMAGETYPE_JPC:
case IMAGETYPE_JP2:
case IMAGETYPE_JPX:
case IMAGETYPE_JB2:
$new_type = ($format & IMG_JPG) ? IMG_JPG : 0;
break;
case IMAGETYPE_PNG:
@ -79,9 +75,6 @@ function get_supported_image_types($type)
case IMAGETYPE_BMP:
$new_type = ($format & IMG_BMP) ? IMG_BMP : 0;
break;
case IMAGETYPE_WBMP:
$new_type = ($format & IMG_WBMP) ? IMG_WBMP : 0;
break;
case IMAGETYPE_WEBP:
$new_type = ($format & IMG_WEBP) ? IMG_WEBP : 0;
break;
@ -145,9 +138,6 @@ function create_thumbnail($source, $new_file, $mimetype)
case IMG_BMP:
$image = imagecreatefrombmp($source);
break;
case IMG_WBMP:
$image = imagecreatefromwbmp($source);
break;
case IMG_WEBP:
$image = imagecreatefromwebp($source);
break;
@ -176,9 +166,6 @@ function create_thumbnail($source, $new_file, $mimetype)
case IMG_BMP:
imagebmp($new_image, $new_file);
break;
case IMG_WBMP:
imagewbmp($new_image, $new_file);
break;
case IMG_WEBP:
imagewebp($new_image, $new_file);
break;