ImageInterface::isValid

public ImageInterface::isValid() Checks if the image is valid. Return value bool TRUE if the image object contains a valid image, FALSE otherwise. File core/lib/Drupal/Core/Image/ImageInterface.php, line 16 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function isValid();

ImageInterface::getWidth

public ImageInterface::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/Image/ImageInterface.php, line 32 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function getWidth();

ImageInterface::getToolkitId

public ImageInterface::getToolkitId() Returns the ID of the image toolkit used for this image file. Return value string The ID of the image toolkit. File core/lib/Drupal/Core/Image/ImageInterface.php, line 74 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function getToolkitId();

ImageInterface::getToolkit

public ImageInterface::getToolkit() Returns the image toolkit used for this image file. Return value \Drupal\Core\ImageToolkit\ImageToolkitInterface The image toolkit. File core/lib/Drupal/Core/Image/ImageInterface.php, line 66 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function getToolkit();

ImageInterface::getSource

public ImageInterface::getSource() Retrieves the source path of the image file. Return value string The source path of the image file. An empty string if the source is not set. File core/lib/Drupal/Core/Image/ImageInterface.php, line 58 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function getSource();

ImageInterface::getMimeType

public ImageInterface::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/Image/ImageInterface.php, line 49 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function getMimeType();

ImageInterface::getHeight

public ImageInterface::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/Image/ImageInterface.php, line 24 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function getHeight();

ImageInterface::getFileSize

public ImageInterface::getFileSize() Returns the size of the image file. Return value int|null The size of the file in bytes, or NULL if the image is invalid. File core/lib/Drupal/Core/Image/ImageInterface.php, line 40 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function getFileSize();

ImageInterface::desaturate

public ImageInterface::desaturate() Converts an image to grayscale. Return value bool TRUE on success, FALSE on failure. File core/lib/Drupal/Core/Image/ImageInterface.php, line 223 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function desaturate();

ImageInterface::crop

public ImageInterface::crop($x, $y, $width, $height = NULL) Crops an image to a rectangle specified by the given dimensions. Parameters int $x: The top left coordinate, in pixels, of the crop area (x axis value). int $y: The top left coordinate, in pixels, of the crop area (y axis value). int $width: The target width, in pixels. int $height: The target height, in pixels. Return value bool TRUE on success, FALSE on failure. File core/lib/Drupal/Core/Image/ImageInterface.php, line 202 Class