diff --git a/webroot/test/config.php b/webroot/test/config.php new file mode 100644 index 0000000..a8c3f78 --- /dev/null +++ b/webroot/test/config.php @@ -0,0 +1,8 @@ + + + + <?=$title?> + + + + + + + +

+ + +

+ + +

Images used in test

+ +

The following images are used for this test.

+ + +

+ + + (json) + (verbose) + +
+

+

+ +

+
+
+
+
+
+
+

Testcases used for each image

+ +

The following testcases are used for each image.

+ + +
+ + + + +

For each image, apply all testcases

+ + +

. Using source image

+ +

+ + + (json) + (verbose) + +
+ +

+ +

+
+
+
+

Testcase :

+ +

+ + + (json) + (verbose) + +
+ +

+ +

+
+
+
+
diff --git a/webroot/test/test_issue29.php b/webroot/test/test_issue29.php
index 54d00df..af1518c 100644
--- a/webroot/test/test_issue29.php
+++ b/webroot/test/test_issue29.php
@@ -1,75 +1,38 @@
-
-
-  
-  Testing img for issue 29
-  
-
-
-

Testing issue 29

- Version of PHP is: " . phpversion(); -$imgphp = "../img.php?src="; +// The title of the test case +$title = "Testing img for issue 29"; + + + +// Provide a short description of the testcase. +$description = ""; + + + +// Use these images in the test $images = array( - 'issue29/400x265.jpg', - 'issue29/400x268.jpg', - 'issue29/400x300.jpg', - 'issue29/465x304.jpg', - 'issue29/640x273.jpg', + 'issue29/400x265.jpg', + 'issue29/400x268.jpg', + 'issue29/400x300.jpg', + 'issue29/465x304.jpg', + 'issue29/640x273.jpg', ); + +// For each image, apply these testcases $testcase = array( - '&w=300&cf&q=80&nc', - '&w=75&h=75&cf&q=80&nc', - '&w=75&h=75&q=80', + '&w=300&cf&q=80&nc', + '&w=75&h=75&cf&q=80&nc', + '&w=75&h=75&q=80', ); -?> - - -

Images used in test

- -

The following images are used for this test.

- - -


-

- -

Testcases used for each image

- -

The following testcases are used for each image.

- - -
- - - - -

Applying testcase for each image

- - -

- -


-

- - -

- -


-

- - - - +// Applu testcases and present results +include __DIR__ . "/template.php"; diff --git a/webroot/test/test_issue36_aro.php b/webroot/test/test_issue36_aro.php index 969d9fc..953023f 100644 --- a/webroot/test/test_issue36_aro.php +++ b/webroot/test/test_issue36_aro.php @@ -1,77 +1,42 @@ - - - - Testing img for issue 36 - autoRotate - - - -

Testing issue 36 - autoRotate

- - - -

Images used in test

- -

The following images are used for this test.

- - -


-

- -

Testcases used for each image

- -

The following testcases are used for each image.

- - -
- - - - -

Applying testcase for each image

- - -

- -


-

- - -

- -


-

- - - - +// Applu testcases and present results +include __DIR__ . "/template.php"; diff --git a/webroot/test/test_issue36_rb-ra-180.php b/webroot/test/test_issue36_rb-ra-180.php index 8e6b305..9cb0be3 100644 --- a/webroot/test/test_issue36_rb-ra-180.php +++ b/webroot/test/test_issue36_rb-ra-180.php @@ -1,76 +1,42 @@ - - - Testing img for issue 36 - rotateBefore, rotateAfter <?=$angle?> - - - -

Testing issue 36 - rotateBefore, rotateAfter

-"; -$imgphp = "../img.php?src="; + +// Provide a short description of the testcase. +$description = ""; + + + +// Use these images in the test $images = array( - 'kodim08.png', - 'kodim04.png', + 'kodim08.png', + 'kodim04.png', ); + + +// For each image, apply these testcases $testcase = array( - "&rb=$angle&nc", - "&rb=$angle&nc&w=200", - "&rb=$angle&nc&h=200", - "&rb=$angle&nc&w=200&h=200&cf", - "&ra=$angle&nc", - "&ra=$angle&nc&w=200", - "&ra=$angle&nc&h=200", - "&ra=$angle&nc&w=200&h=200&cf", + "&rb=$angle&nc", + "&rb=$angle&nc&w=200", + "&rb=$angle&nc&h=200", + "&rb=$angle&nc&w=200&h=200&cf", + "&ra=$angle&nc", + "&ra=$angle&nc&w=200", + "&ra=$angle&nc&h=200", + "&ra=$angle&nc&w=200&h=200&cf", ); -?> - - -

Images used in test

- -

The following images are used for this test.

- - -


-

- -

Testcases used for each image

- -

The following testcases are used for each image.

- - -
- - - - -

Applying testcase for each image

- - -

- -


-

- - -

- -


-

- - - - +// Apply testcases and present results +include __DIR__ . "/template.php"; diff --git a/webroot/test/test_issue36_rb-ra-270.php b/webroot/test/test_issue36_rb-ra-270.php index e3d07ba..93d671f 100644 --- a/webroot/test/test_issue36_rb-ra-270.php +++ b/webroot/test/test_issue36_rb-ra-270.php @@ -1,76 +1,42 @@ - - - Testing img for issue 36 - rotateBefore, rotateAfter <?=$angle?> - - - -

Testing issue 36 - rotateBefore, rotateAfter

-"; -$imgphp = "../img.php?src="; + +// Provide a short description of the testcase. +$description = ""; + + + +// Use these images in the test $images = array( - 'kodim08.png', - 'kodim04.png', + 'kodim08.png', + 'kodim04.png', ); + + +// For each image, apply these testcases $testcase = array( - "&rb=$angle&nc", - "&rb=$angle&nc&w=200", - "&rb=$angle&nc&h=200", - "&rb=$angle&nc&w=200&h=200&cf", - "&ra=$angle&nc", - "&ra=$angle&nc&w=200", - "&ra=$angle&nc&h=200", - "&ra=$angle&nc&w=200&h=200&cf", + "&rb=$angle&nc", + "&rb=$angle&nc&w=200", + "&rb=$angle&nc&h=200", + "&rb=$angle&nc&w=200&h=200&cf", + "&ra=$angle&nc", + "&ra=$angle&nc&w=200", + "&ra=$angle&nc&h=200", + "&ra=$angle&nc&w=200&h=200&cf", ); -?> - - -

Images used in test

- -

The following images are used for this test.

- - -


-

- -

Testcases used for each image

- -

The following testcases are used for each image.

- - -
- - - - -

Applying testcase for each image

- - -

- -


-

- - -

- -


-

- - - - +// Apply testcases and present results +include __DIR__ . "/template.php"; diff --git a/webroot/test/test_issue36_rb-ra-45.php b/webroot/test/test_issue36_rb-ra-45.php index a75dce8..381b4ac 100644 --- a/webroot/test/test_issue36_rb-ra-45.php +++ b/webroot/test/test_issue36_rb-ra-45.php @@ -1,78 +1,42 @@ - - - Testing img for issue 36 - rotateBefore, rotateAfter <?=$angle?> - - - -

Testing issue 36 - rotateBefore, rotateAfter

-"; -$imgphp = "../img.php?src="; + +// Provide a short description of the testcase. +$description = ""; + + + +// Use these images in the test $images = array( - 'kodim08.png', - 'kodim04.png', + 'kodim08.png', + 'kodim04.png', ); + + +// For each image, apply these testcases $testcase = array( - "&rb=$angle&bgc=ffffff&nc", - "&rb=$angle&bgc=ffffff&nc&w=200", - "&rb=$angle&bgc=ffffff&nc&h=200", - "&rb=$angle&bgc=ffffff&nc&w=200&h=200&cf", - "&rb=$angle&bgc=ffffff&nc&w=200&h=200&cf&crop=200,200,center,center", - "&ra=$angle&bgc=ffffff&nc", - "&ra=$angle&bgc=ffffff&nc&w=200", - "&ra=$angle&bgc=ffffff&nc&h=200", - "&ra=$angle&bgc=ffffff&nc&w=200&h=200&cf", - "&ra=$angle&bgc=ffffff&nc&w=200&h=200&cf&crop=200,200,center,center", + "&rb=$angle&nc", + "&rb=$angle&nc&w=200", + "&rb=$angle&nc&h=200", + "&rb=$angle&nc&w=200&h=200&cf", + "&ra=$angle&nc", + "&ra=$angle&nc&w=200", + "&ra=$angle&nc&h=200", + "&ra=$angle&nc&w=200&h=200&cf", ); -?> - - -

Images used in test

- -

The following images are used for this test.

- - -


-

- -

Testcases used for each image

- -

The following testcases are used for each image.

- - -
- - - - -

Applying testcase for each image

- - -

- -


-

- - -

- -


-

- - - - +// Apply testcases and present results +include __DIR__ . "/template.php"; diff --git a/webroot/test/test_issue36_rb-ra-90.php b/webroot/test/test_issue36_rb-ra-90.php index 3dce95f..a559064 100644 --- a/webroot/test/test_issue36_rb-ra-90.php +++ b/webroot/test/test_issue36_rb-ra-90.php @@ -1,76 +1,42 @@ - - - Testing img for issue 36 - rotateBefore, rotateAfter <?=$angle?> - - - -

Testing issue 36 - rotateBefore, rotateAfter

-"; -$imgphp = "../img.php?src="; + +// Provide a short description of the testcase. +$description = ""; + + + +// Use these images in the test $images = array( - 'kodim08.png', - 'kodim04.png', + 'kodim08.png', + 'kodim04.png', ); + + +// For each image, apply these testcases $testcase = array( - "&rb=$angle&nc", - "&rb=$angle&nc&w=200", - "&rb=$angle&nc&h=200", - "&rb=$angle&nc&w=200&h=200&cf", - "&ra=$angle&nc", - "&ra=$angle&nc&w=200", - "&ra=$angle&nc&h=200", - "&ra=$angle&nc&w=200&h=200&cf", + "&rb=$angle&nc", + "&rb=$angle&nc&w=200", + "&rb=$angle&nc&h=200", + "&rb=$angle&nc&w=200&h=200&cf", + "&ra=$angle&nc", + "&ra=$angle&nc&w=200", + "&ra=$angle&nc&h=200", + "&ra=$angle&nc&w=200&h=200&cf", ); -?> - - -

Images used in test

- -

The following images are used for this test.

- - -


-

- -

Testcases used for each image

- -

The following testcases are used for each image.

- - -
- - - - -

Applying testcase for each image

- - -

- -


-

- - -

- -


-

- - - - +// Applu testcases and present results +include __DIR__ . "/template.php"; diff --git a/webroot/test/test_issue40.php b/webroot/test/test_issue40.php index 75216c9..4f598f3 100644 --- a/webroot/test/test_issue40.php +++ b/webroot/test/test_issue40.php @@ -1,120 +1,37 @@ - - - - Testing img for issue 40 - no ratio - - - - - - - -

Testing issue 40 - no ratio

- - - -

Images used in test

- -

The following images are used for this test.

- - -

- - - (json) - (verbose) - -
-

-

- -

-
-
-
 
 
 
-

Testcases used for each image

- -

The following testcases are used for each image.

- - -
- - - - -

Applying testcase for each image

- - -

. Using source image

- -

- - - (json) - (verbose) - -
- -

- -

-
-
-
-

Testcase :

- -

- - - (json) - (verbose) - -
- -

- -

-
-
-
-
-
+// Apply testcases and present results
+include __DIR__ . "/template.php";