private function FileCommited::writeImage in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
1 call to FileCommited::writeImage()
- FileCommited::resizeImage in vendor/
edsdk/ file-uploader-server-php/ src/ lib/ file/ FileCommited.php
File
- vendor/
edsdk/ file-uploader-server-php/ src/ lib/ file/ FileCommited.php, line 226
Class
Namespace
EdSDK\FileUploaderServer\lib\fileCode
private function writeImage($image) {
switch (strtolower($this
->getExt())) {
case 'gif':
imagegif($image, $this
->getFullPath());
break;
case 'jpeg':
case 'jpg':
imagejpeg($image, $this
->getFullPath(), $this->m_config
->getJpegQuality());
break;
case 'png':
imagepng($image, $this
->getFullPath());
break;
case 'bmp':
imagewbmp($image, $this
->getFullPath());
break;
}
}