ImageToolkitInterface::parseFile

public ImageToolkitInterface::parseFile() Determines if a file contains a valid image. Drupal supports GIF, JPG and PNG file formats when used with the GD toolkit, and may support others, depending on which toolkits are installed. Return value bool TRUE if the file could be found and is an image, FALSE otherwise. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 102 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageTool

ImageToolkitInterface::isValid

public ImageToolkitInterface::isValid() Checks if the image is valid. Return value bool TRUE if the image toolkit is currently handling a valid image, FALSE otherwise. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 79 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageToolkit Code public function isValid();

ImageToolkitInterface::isAvailable

public static ImageToolkitInterface::isAvailable() Verifies that the Image Toolkit is set up correctly. Return value bool TRUE if the toolkit is available on this machine, FALSE otherwise. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 149 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageToolkit Code public static function isAvailable();

ImageToolkitInterface::getWidth

public ImageToolkitInterface::getWidth() Returns the width of the image. Return value int|null The width of the image, or NULL if the image is invalid. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 118 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageToolkit Code public function getWidth();

ImageToolkitInterface::getSupportedExtensions

public static ImageToolkitInterface::getSupportedExtensions() Returns a list of image file extensions supported by the toolkit. Return value array An array of supported image file extensions (e.g. png/jpeg/gif). File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 157 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageToolkit Code public static function getSupportedExtensions();

ImageToolkitInterface::getSource

public ImageToolkitInterface::getSource() Gets the source path of the image file. Return value string The source path of the image file, or an empty string if the source is not set. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 70 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageToolkit Code public function getSource();

ImageToolkitInterface::getRequirements

public ImageToolkitInterface::getRequirements() Gets toolkit requirements in a format suitable for hook_requirements(). Return value array An associative requirements array as is returned by hook_requirements(). If the toolkit claims no requirements to the system, returns an empty array. The array can have arbitrary keys and they do not have to be prefixed by e.g. the module name or toolkit ID, as the system will make the keys globally unique. See also hook_requirements() File core/lib/Drupal

ImageToolkitInterface::getMimeType

public ImageToolkitInterface::getMimeType() Returns the MIME type of the image file. Return value string The MIME type of the image file, or an empty string if the image is invalid. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 127 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageToolkit Code public function getMimeType();

ImageToolkitInterface::getHeight

public ImageToolkitInterface::getHeight() Returns the height of the image. Return value int|null The height of the image, or NULL if the image is invalid. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 110 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageToolkit Code public function getHeight();

ImageToolkitInterface::apply

public ImageToolkitInterface::apply($operation, array $arguments = array()) Applies a toolkit operation to an image. Parameters string $operation: The toolkit operation to be processed. array $arguments: An associative array of arguments to be passed to the toolkit operation, e.g. array('width' => 50, 'height' => 100, 'upscale' => TRUE). Return value bool TRUE if the operation was performed successfully, FALSE otherwise. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.ph