remove old code

This commit is contained in:
Astrologies 2021-12-16 01:50:14 -05:00
parent b97c912325
commit 73a3c7d339
1 changed files with 0 additions and 15 deletions

View File

@ -19,21 +19,6 @@ function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y,
imagecopymerge($dst_im, $cut, $dst_x, $dst_y, 0, 0, $src_w, $src_h, $pct);
}
function resizebase64img($newWidth, $newHeight, $targetFile, $originalFile) //must already be decoded
{
$img = imagecreatefromstring($originalFile);
$width = imagesx($img);
$height = imagesy($img);
$tmp = imagecreatetruecolor($newWidth, $newHeight);
imagealphablending($tmp , false);
imagesavealpha($tmp , true);
imagecopyresampled($tmp, $img, 0, 0, 0, 0, $newWidth, $newHeight, $width, $height);
if (imagepng($tmp, "$targetFile")) {
return true;
}
return false;
}
function isbase64png($base64) //must already be decoded
{
$mimetype = finfo_buffer(finfo_open(), $base64, FILEINFO_MIME_TYPE); //file type