mirror of
https://github.com/mosbth/cimage.git
synced 2025-07-22 09:11:22 +02:00
44 lines
848 B
PHP
44 lines
848 B
PHP
<?php
|
|
// Include config for all testcases
|
|
include __DIR__ . "/config.php";
|
|
|
|
|
|
|
|
// The title of the test case
|
|
$title = "Testing resize portrait image";
|
|
|
|
|
|
|
|
// Provide a short description of the testcase.
|
|
$description = "Resize portrait image";
|
|
|
|
|
|
|
|
// Use these images in the test
|
|
$images = array(
|
|
'kodim04.png',
|
|
);
|
|
|
|
|
|
|
|
// For each image, apply these testcases
|
|
$nc = empty($_SERVER['QUERY_STRING']) ? "" : "&" . $_SERVER['QUERY_STRING'];
|
|
|
|
$testcase = array(
|
|
$nc . '&w=500',
|
|
$nc . '&h=200',
|
|
$nc . '&w=500&h=500',
|
|
$nc . '&w=500&h=200',
|
|
$nc . '&w=500&h=200&crop-to-fit',
|
|
$nc . '&w=200&h=500&crop-to-fit',
|
|
$nc . '&w=500&h=200&fill-to-fit',
|
|
$nc . '&w=200&h=500&fill-to-fit',
|
|
$nc . '&w=500&h=200&stretch',
|
|
$nc . '&w=200&h=500&stretch',
|
|
);
|
|
|
|
|
|
|
|
// Apply testcases and present results
|
|
include __DIR__ . "/template.php";
|