public function ImageInterface::convert in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::convert()
Instructs the toolkit to save the image in the format specified by the extension.
Parameters
string $extension: The extension to convert to (e.g. 'jpeg' or 'png'). Allowed values depend on the current image toolkit.
Return value
bool TRUE on success, FALSE on failure.
See also
\Drupal\Core\ImageToolkit\ImageToolkitInterface::getSupportedExtensions()
1 method overrides ImageInterface::convert()
- Image::convert in core/
lib/ Drupal/ Core/ Image/ Image.php - Instructs the toolkit to save the image in the format specified by the extension.
File
- core/
lib/ Drupal/ Core/ Image/ ImageInterface.php, line 187 - Contains \Drupal\Core\Image\ImageInterface.
Class
- ImageInterface
- Provides an interface for image objects.
Namespace
Drupal\Core\ImageCode
public function convert($extension);