Contao\CoreBundle\Test\Contao\ImageTest::getComputeResizeDataWithImportantPart PHP Method

getComputeResizeDataWithImportantPart() public method

Provides the data for the testComputeResizeWithImportantPart() method.
    public function getComputeResizeDataWithImportantPart()
    {
        return ['No dimensions zoom 0' => [[null, null, 100, 100, null, 0, ['x' => 20, 'y' => 20, 'width' => 60, 'height' => 60]], ['width' => 100, 'height' => 100, 'target_x' => 0, 'target_y' => 0, 'target_width' => 100, 'target_height' => 100]], 'No dimensions zoom 50' => [[null, null, 100, 100, null, 50, ['x' => 20, 'y' => 20, 'width' => 60, 'height' => 60]], ['width' => 80, 'height' => 80, 'target_x' => -10, 'target_y' => -10, 'target_width' => 100, 'target_height' => 100]], 'No dimensions zoom 100' => [[null, null, 100, 100, null, 100, ['x' => 20, 'y' => 20, 'width' => 60, 'height' => 60]], ['width' => 60, 'height' => 60, 'target_x' => -20, 'target_y' => -20, 'target_width' => 100, 'target_height' => 100]], 'Width only zoom 0' => [[100, null, 100, 100, null, 0, ['x' => 20, 'y' => 20, 'width' => 60, 'height' => 60]], ['width' => 100, 'height' => 100, 'target_x' => 0, 'target_y' => 0, 'target_width' => 100, 'target_height' => 100]], 'Width only zoom 50' => [[100, null, 100, 100, null, 50, ['x' => 20, 'y' => 20, 'width' => 60, 'height' => 60]], ['width' => 100, 'height' => 100, 'target_x' => -13, 'target_y' => -13, 'target_width' => 125, 'target_height' => 125]], 'Width only zoom 100' => [[100, null, 100, 100, null, 100, ['x' => 20, 'y' => 20, 'width' => 60, 'height' => 60]], ['width' => 100, 'height' => 100, 'target_x' => -33, 'target_y' => -33, 'target_width' => 167, 'target_height' => 167]], 'Same dimensions zoom 0' => [[100, 100, 100, 100, null, 0, ['x' => 25, 'y' => 25, 'width' => 50, 'height' => 50]], ['width' => 100, 'height' => 100, 'target_x' => 0, 'target_y' => 0, 'target_width' => 100, 'target_height' => 100]], 'Same dimensions zoom 50' => [[100, 100, 100, 100, null, 50, ['x' => 25, 'y' => 25, 'width' => 50, 'height' => 50]], ['width' => 100, 'height' => 100, 'target_x' => -17, 'target_y' => -17, 'target_width' => 133, 'target_height' => 133]], 'Same dimensions zoom 100' => [[100, 100, 100, 100, null, 100, ['x' => 25, 'y' => 25, 'width' => 50, 'height' => 50]], ['width' => 100, 'height' => 100, 'target_x' => -50, 'target_y' => -50, 'target_width' => 200, 'target_height' => 200]], 'Landscape to portrait zoom 0' => [[100, 200, 200, 100, null, 0, ['x' => 140, 'y' => 40, 'width' => 20, 'height' => 20]], ['width' => 100, 'height' => 200, 'target_x' => -233, 'target_y' => 0, 'target_width' => 400, 'target_height' => 200]], 'Landscape to portrait zoom 50' => [[100, 200, 200, 100, null, 50, ['x' => 140, 'y' => 40, 'width' => 20, 'height' => 20]], ['width' => 100, 'height' => 200, 'target_x' => -367, 'target_y' => -43, 'target_width' => 571, 'target_height' => 286]], 'Landscape to portrait zoom 100' => [[100, 200, 200, 100, null, 100, ['x' => 140, 'y' => 40, 'width' => 20, 'height' => 20]], ['width' => 100, 'height' => 200, 'target_x' => -700, 'target_y' => -150, 'target_width' => 1000, 'target_height' => 500]]];
    }