You are here

public function AFile::getImageWidth in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

3 calls to AFile::getImageWidth()
AFile::getData in vendor/edsdk/file-uploader-server-php/src/lib/file/AFile.php
FileCommited::applySizes in vendor/edsdk/file-uploader-server-php/src/lib/file/FileCommited.php
FileCommited::resizeImage in vendor/edsdk/file-uploader-server-php/src/lib/file/FileCommited.php

File

vendor/edsdk/file-uploader-server-php/src/lib/file/AFile.php, line 126

Class

AFile

Namespace

EdSDK\FileUploaderServer\lib\file

Code

public function getImageWidth() {
  if ($size = @getimagesize($this
    ->getFullPath())) {
    return $size === null ? -1 : $size[0];
  }
  else {
    throw new MessageException(Message::createMessage(Message::IMAGE_PROCESS_ERROR));
  }
}