Testing CImage.php through img.php

Testcases

Test case with image wider.jpg

Test case with image wider.jpg
Testcase:Result:
0
Original image
../img.php?src=wider.jpg
1
Crop out a rectangle of 100x100, start by position 200x200.
../img.php?src=wider.jpg&crop=100,100,200,200
2
Crop out a full width rectangle with height of 200, start by position 0x100.
../img.php?src=wider.jpg&crop=0,200,0,100
3
Max width 200.
../img.php?src=wider.jpg&w=200
4
Max height 200.
../img.php?src=wider.jpg&h=200
5
Max width 200 and max height 200.
../img.php?src=wider.jpg&w=200&h=200
6
No-ratio makes image fit in area of width 200 and height 200.
../img.php?src=wider.jpg&w=200&h=200&no-ratio
7
Crop to fit in width 200 and height 200.
../img.php?src=wider.jpg&w=200&h=200&crop-to-fit
8
Crop to fit in width 200 and height 100.
../img.php?src=wider.jpg&w=200&h=100&crop-to-fit
9
Crop to fit in width 100 and height 200.
../img.php?src=wider.jpg&w=100&h=200&crop-to-fit
10
Quality 70
../img.php?src=wider.jpg&w=200&h=200&quality=70
11
Quality 40
../img.php?src=wider.jpg&w=200&h=200&quality=40
12
Quality 10
../img.php?src=wider.jpg&w=200&h=200&quality=10
13
Filter: Negate
../img.php?src=wider.jpg&w=200&h=200&f=negate
14
Filter: Grayscale
../img.php?src=wider.jpg&w=200&h=200&f=grayscale
15
Filter: Brightness 90
../img.php?src=wider.jpg&w=200&h=200&f=brightness,90
16
Filter: Contrast 50
../img.php?src=wider.jpg&w=200&h=200&f=contrast,50
17
Filter: Colorize 0,255,0,0
../img.php?src=wider.jpg&w=200&h=200&f=colorize,0,255,0,0
18
Filter: Edge detect
../img.php?src=wider.jpg&w=200&h=200&f=edgedetect
19
Filter: Emboss
../img.php?src=wider.jpg&w=200&h=200&f=emboss
20
Filter: Gaussian blur
../img.php?src=wider.jpg&w=200&h=200&f=gaussian_blur
21
Filter: Selective blur
../img.php?src=wider.jpg&w=200&h=200&f=selective_blur
22
Filter: Mean removal
../img.php?src=wider.jpg&w=200&h=200&f=mean_removal
23
Filter: Smooth 2
../img.php?src=wider.jpg&w=200&h=200&f=smooth,2
24
Filter: Pixelate 10,10
../img.php?src=wider.jpg&w=200&h=200&f=pixelate,10,10
25
Multiple filter: Negate, Grayscale and Pixelate 10,10
../img.php?src=wider.jpg&w=200&h=200&&f=negate&f0=grayscale&f1=pixelate,10,10
26
Crop with width & height and crop-to-fit with quality and filter
../img.php?src=wider.jpg&crop=100,100,100,100&w=200&h=200&crop-to-fit&q=70&f0=grayscale

Test case with image higher.jpg

Test case with image higher.jpg
Testcase:Result:
0
Original image
../img.php?src=higher.jpg
1
Crop out a rectangle of 100x100, start by position 200x200.
../img.php?src=higher.jpg&crop=100,100,200,200
2
Crop out a full width rectangle with height of 200, start by position 0x100.
../img.php?src=higher.jpg&crop=0,200,0,100
3
Max width 200.
../img.php?src=higher.jpg&w=200
4
Max height 200.
../img.php?src=higher.jpg&h=200
5
Max width 200 and max height 200.
../img.php?src=higher.jpg&w=200&h=200
6
No-ratio makes image fit in area of width 200 and height 200.
../img.php?src=higher.jpg&w=200&h=200&no-ratio
7
Crop to fit in width 200 and height 200.
../img.php?src=higher.jpg&w=200&h=200&crop-to-fit
8
Crop to fit in width 200 and height 100.
../img.php?src=higher.jpg&w=200&h=100&crop-to-fit
9
Crop to fit in width 100 and height 200.
../img.php?src=higher.jpg&w=100&h=200&crop-to-fit
10
Quality 70
../img.php?src=higher.jpg&w=200&h=200&quality=70
11
Quality 40
../img.php?src=higher.jpg&w=200&h=200&quality=40
12
Quality 10
../img.php?src=higher.jpg&w=200&h=200&quality=10
13
Filter: Negate
../img.php?src=higher.jpg&w=200&h=200&f=negate
14
Filter: Grayscale
../img.php?src=higher.jpg&w=200&h=200&f=grayscale
15
Filter: Brightness 90
../img.php?src=higher.jpg&w=200&h=200&f=brightness,90
16
Filter: Contrast 50
../img.php?src=higher.jpg&w=200&h=200&f=contrast,50
17
Filter: Colorize 0,255,0,0
../img.php?src=higher.jpg&w=200&h=200&f=colorize,0,255,0,0
18
Filter: Edge detect
../img.php?src=higher.jpg&w=200&h=200&f=edgedetect
19
Filter: Emboss
../img.php?src=higher.jpg&w=200&h=200&f=emboss
20
Filter: Gaussian blur
../img.php?src=higher.jpg&w=200&h=200&f=gaussian_blur
21
Filter: Selective blur
../img.php?src=higher.jpg&w=200&h=200&f=selective_blur
22
Filter: Mean removal
../img.php?src=higher.jpg&w=200&h=200&f=mean_removal
23
Filter: Smooth 2
../img.php?src=higher.jpg&w=200&h=200&f=smooth,2
24
Filter: Pixelate 10,10
../img.php?src=higher.jpg&w=200&h=200&f=pixelate,10,10
25
Multiple filter: Negate, Grayscale and Pixelate 10,10
../img.php?src=higher.jpg&w=200&h=200&&f=negate&f0=grayscale&f1=pixelate,10,10
26
Crop with width & height and crop-to-fit with quality and filter
../img.php?src=higher.jpg&crop=100,100,100,100&w=200&h=200&crop-to-fit&q=70&f0=grayscale