1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-21 07:11:24 +02:00

improving dummy image

This commit is contained in:
Mikael Roos
2015-10-18 17:15:14 +02:00
parent 39b6078d84
commit 1bd6fc8a2c
7 changed files with 70 additions and 11 deletions

View File

@@ -8,7 +8,7 @@
*
*/
$version = "v0.7.5 (2015-10-18)";
$version = "v0.7.6 (2015-10-18)";
@@ -962,9 +962,13 @@ if ($dummyImage === true) {
->setSource($dummyFilename, $dummyDir)
->setOptions(
array(
'bgColor' => $bgColor,
'newWidth' => $newWidth,
'newHeight' => $newHeight,
'bgColor' => $bgColor,
)
)
->setJpegQuality($quality)
->setPngCompression($compress)
->createDummyImage()
->generateFilename(null, false)
->save(null, null, false);

View File

@@ -3481,7 +3481,7 @@ EOD;
*
*/
$version = "v0.7.5 (2015-10-18)";
$version = "v0.7.6 (2015-10-18)";
@@ -4435,9 +4435,13 @@ if ($dummyImage === true) {
->setSource($dummyFilename, $dummyDir)
->setOptions(
array(
'bgColor' => $bgColor,
'newWidth' => $newWidth,
'newHeight' => $newHeight,
'bgColor' => $bgColor,
)
)
->setJpegQuality($quality)
->setPngCompression($compress)
->createDummyImage()
->generateFilename(null, false)
->save(null, null, false);

View File

@@ -3481,7 +3481,7 @@ EOD;
*
*/
$version = "v0.7.5 (2015-10-18)";
$version = "v0.7.6 (2015-10-18)";
@@ -4435,9 +4435,13 @@ if ($dummyImage === true) {
->setSource($dummyFilename, $dummyDir)
->setOptions(
array(
'bgColor' => $bgColor,
'newWidth' => $newWidth,
'newHeight' => $newHeight,
'bgColor' => $bgColor,
)
)
->setJpegQuality($quality)
->setPngCompression($compress)
->createDummyImage()
->generateFilename(null, false)
->save(null, null, false);

View File

@@ -3481,7 +3481,7 @@ EOD;
*
*/
$version = "v0.7.5 (2015-10-18)";
$version = "v0.7.6 (2015-10-18)";
@@ -4435,9 +4435,13 @@ if ($dummyImage === true) {
->setSource($dummyFilename, $dummyDir)
->setOptions(
array(
'bgColor' => $bgColor,
'newWidth' => $newWidth,
'newHeight' => $newHeight,
'bgColor' => $bgColor,
)
)
->setJpegQuality($quality)
->setPngCompression($compress)
->createDummyImage()
->generateFilename(null, false)
->save(null, null, false);

View File

@@ -0,0 +1,36 @@
<?php
// Include config for all testcases
include __DIR__ . "/config.php";
// The title of the test case
$title = "Testing issue 100 - Dummy images";
// Provide a short description of the testcase.
$description = "Create dummy images.";
// Use these images in the test
$images = array(
'dummy',
);
// For each image, apply these testcases
$testcase = array(
'&nc&so',
'&nc&width=300',
'&nc&height=300',
'&nc&width=300&height=300',
'&nc&bgc=006600',
);
// Apply testcases and present results
include __DIR__ . "/template.php";