You are here

private static function FMDiskFileSystem::getImageInfo in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

3 calls to FMDiskFileSystem::getImageInfo()
FMDiskFileSystem::getFiles in vendor/edsdk/flmngr-server-php/src/fs/FMDiskFileSystem.php
FMDiskFileSystem::getImagePreview in vendor/edsdk/flmngr-server-php/src/fs/FMDiskFileSystem.php
FMDiskFileSystem::resizeFile in vendor/edsdk/flmngr-server-php/src/fs/FMDiskFileSystem.php

File

vendor/edsdk/flmngr-server-php/src/fs/FMDiskFileSystem.php, line 211

Class

FMDiskFileSystem

Namespace

EdSDK\FlmngrServer\fs

Code

private static function getImageInfo($file) {
  $size = getimagesize($file);
  if ($size === FALSE) {
    throw new MessageException(Message::createMessage(Message::IMAGE_PROCESS_ERROR));
  }
  $imageInfo = new ImageInfo();
  $imageInfo->width = $size[0];
  $imageInfo->height = $size[1];
  return $imageInfo;
}