ImageInterface

Provides an interface for image objects.

Hierarchy

File

core/lib/Drupal/Core/Image/ImageInterface.php, line 8

Namespace

Drupal\Core\Image

Members

Name Modifiers Type Description
ImageInterface::apply public function Applies a toolkit operation to the image.
ImageInterface::convert public function Instructs the toolkit to save the image in the format specified by the extension.
ImageInterface::createNew public function Prepares a new image, without loading it from a file.
ImageInterface::crop public function Crops an image to a rectangle specified by the given dimensions.
ImageInterface::desaturate public function Converts an image to grayscale.
ImageInterface::getFileSize public function Returns the size of the image file.
ImageInterface::getHeight public function Returns the height of the image.
ImageInterface::getMimeType public function Returns the MIME type of the image file.
ImageInterface::getSource public function Retrieves the source path of the image file.
ImageInterface::getToolkit public function Returns the image toolkit used for this image file.
ImageInterface::getToolkitId public function Returns the ID of the image toolkit used for this image file.
ImageInterface::getWidth public function Returns the width of the image.
ImageInterface::isValid public function Checks if the image is valid.
ImageInterface::resize public function Resizes an image to the given dimensions (ignoring aspect ratio).
ImageInterface::rotate public function Rotates an image by the given number of degrees.
ImageInterface::save public function Closes the image and saves the changes to a file.
ImageInterface::scale public function Scales an image while maintaining aspect ratio.
ImageInterface::scaleAndCrop public function Scales an image to the exact width and height given.
doc_Drupal
2016-10-29 09:19:21
Comments
Leave a Comment

Please login to continue.