51,7 → 51,7 |
$output = ImageCreateTrueColor($newwidth, $newheight); |
$source = ImageCreateFromPNG($folder); |
|
ImageCopyResized($output, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); |
ImageCopyResampled($output, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); |
ImagePNG($output, $folderEM); |
|
$percent = 15/$height; |
100,7 → 100,7 |
$black = ImageColorAllocate($output, 0, 0, 0); |
$source = ImageCreateFromPNG($folder); |
|
ImageCopyResized($output, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); |
ImageCopyResampled($output, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); |
ImageColorTransparent($output, $black); |
ImagePNG($output, $folderEM); |
|