W3cubDocs

/Drupal 8

class Image

Provides helpers to operate on images.

Hierarchy

  • class \Drupal\Component\Utility\Image

Related topics

Utility classes and functions
Overview of utility classes and functions for developers.

File

core/lib/Drupal/Component/Utility/Image.php, line 10

Namespace

Drupal\Component\Utility

Members

Name Modifiers Type Description
Image::scaleDimensions public static function Scales image dimensions while maintaining aspect ratio.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Image.php/class/Image/8.1.x