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.
bool TRUE if the file could be found and is an image, FALSE otherwise.
public function parseFile();
© 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!Core!ImageToolkit!ImageToolkitInterface.php/function/ImageToolkitInterface::parseFile/8.1.x