Returns the equivalent important part from a legacy resize mode.
public getImportantPartFromLegacyMode ( Contao\Image\ImageInterface $image, string $mode ) : Contao\Image\ImportantPartInterface | ||
$image | Contao\Image\ImageInterface | |
$mode | string | One of left_top, center_top, right_top, left_center, center_center, right_center, left_bottom, center_bottom, right_bottom |
return | Contao\Image\ImportantPartInterface |