core-bundle/src/Resources/contao/library/Contao/Image.php
public static function get($image, $width, $height, $mode='', $target=null, $force=false)
	{
		@trigger_error('Using Image::get() has been deprecated and will no longer work in Contao 5.0. Use the contao.image.image_factory service instead.', E_USER_DEPRECATED);

		if ($image == '')
		{
			return null;
		}

		try
		{
			$imageObj = static::create($image, array($width, $height, $mode));
			$imageObj->setTargetPath($target);
			$imageObj->setForceOverride($force);

			if ($path = $imageObj->executeResize()->getResizedPath())
			{
				return $path;
			}
		}
		catch (\Exception $e)
		{
			System::log('Image "' . $image . '" could not be processed: ' . $e->getMessage(), __METHOD__, 'ERROR');
		}

		return null;
	}
public static function get($image, $width, $height, $mode='', $target=null, $force=false)
	{
		@trigger_error('Using Image::get() has been deprecated and will no longer work in Contao 5.0. Use the contao.image.image_factory service instead.', E_USER_DEPRECATED);

		if ($image == '')
		{
			return null;
		}

		try
		{
			$imageObj = static::create($image, array($width, $height, $mode));
			$imageObj->setTargetPath($target);
			$imageObj->setForceOverride($force);

			if ($path = $imageObj->executeResize()->getResizedPath())
			{
				return $path;
			}
		}
		catch (\Exception $e)
		{
			System::log('Image "' . $image . '" could not be processed: ' . $e->getMessage(), __METHOD__, 'ERROR');
		}

		return null;
	}
Resize an image and store the resized version in the image target folder

@param string  $image  The image path
@param integer $width  The target width
@param integer $height The target height
@param string  $mode   The resize mode
@param string  $target An optional target path
@param boolean $force  Override existing target images

@return string|null The path of the resized image or null

@deprecated Deprecated since Contao 4.3, to be removed in Contao 5.0.
Use the contao.image.image_factory service instead.