You are here

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

FileCommited

Namespace

EdSDK\FileUploaderServer\lib\file

Code

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;
  }
}