1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-16 13:04:13 +02:00

Fixed fill-to-fit that failed when using aspect-ratio. Fix #52.

This commit is contained in:
Mikael Roos
2014-12-14 17:04:51 +01:00
parent cfc4a5f0ed
commit ea06d5cfe6
2 changed files with 107 additions and 25 deletions

View File

@@ -0,0 +1,41 @@
<?php
// Include config for all testcases
include __DIR__ . "/config.php";
// The title of the test case
$title = "Testing issue 52 - Fill to fit fails with aspect ratio";
// Provide a short description of the testcase.
$description = "Verify that Fill To Fit resize strategy works with all variants of sizes.";
// Use these images in the test
$images = array(
'car.png',
);
// For each image, apply these testcases
$nc = '&nc';
$testcase = array(
$nc . '&w=300&h=300&fill-to-fit',
$nc . '&w=300&ar=1&fill-to-fit',
$nc . '&w=300&ar=2&fill-to-fit',
$nc . '&h=300&ar=1&fill-to-fit',
$nc . '&h=300&ar=2&fill-to-fit',
$nc . '&w=50%&ar=1&fill-to-fit',
$nc . '&w=50%&ar=2&fill-to-fit',
$nc . '&h=50%&ar=1&fill-to-fit',
$nc . '&h=50%&ar=2&fill-to-fit',
);
// Apply testcases and present results
include __DIR__ . "/template.php";