( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
if (!empty($_GET['fx']))
{
$params = $row['params'];
$moodswing2 =$_GET['fx'];
switch ($moodswing2) {
case "bokehblueorange" :
$background = gd_apply_effectX($params,$background, 'bokehblueorange', 100);
break;
case "bokehgold" :
$background = gd_apply_effectX($params,$background, 'bokehgold', 100);
break;
case "bokehgold2" :
$background = gd_apply_effectX($params,$background, 'bokehgold2', 100);
break;
case "bokehgold3" :
$background = gd_apply_effectX($params,$background, 'bokehgold3', 100);
break;
case "bokehorange" :
$background = gd_apply_effectX($params,$background, 'bokehorange', 100);
break;
case "bokehorange2" :
$background = gd_apply_effectX($params,$background, 'bokehorange2', 100);
break;
case "firesnap" :
$background = gd_apply_effectX($params,$background, 'firesnap', 100);
break;
case "water3" :
$background = gd_apply_effectX($params,$background, 'water3', 100);
break;
case "cracks" :
$background = gd_apply_effectX($params,$background, 'cracks', 100);
break;
case "cracks" :
$background = gd_apply_effectX($params,$background, 'cracks', 100);
break;
case "bubbles" :
$background = gd_apply_effectX($params,$background, 'bubbles', 100);
break;
case "canvas" :
imagefilter($background, IMG_FILTER_BRIGHTNESS, 25);
imagefilter($background, IMG_FILTER_CONTRAST, -25);
imagefilter($background, IMG_FILTER_COLORIZE, 50, 25, -35);
$background = gd_apply_effectX($params,$background, 'canvas', 100);
break;
case "golden" :
imagefilter($background, IMG_FILTER_CONTRAST, -40) ;
$sharpMatrix = array
(
array(0, -1, 0),
array(-1, 5, -1),
array(0, -1, 0)
);
$divisor = array_sum(array_map('array_sum', $sharpMatrix));
$offset = 0;
imageconvolution($background, $sharpMatrix, $divisor, $offset);
break;
case "crinkle" :
$background = gd_apply_effectX($params,$background, 'crinkle', 100);
break;
case "elated" :
imageconvolution($background,
array(
array(-1, -1, -1),
array(-1, 16, -1),
array(-1, -1, -1)
), 8, 0);
imagefilter($background, IMG_FILTER_COLORIZE,255,153,0,40);
break;
case "emulsion" :
$background = gd_apply_effectX($params,$background, 'emulsion', 100);
break;
case "noise" :
$background = gd_apply_effectX($params,$background, 'noise', 100);
break;
case "sepiax" :
imagefilter($background, IMG_FILTER_GRAYSCALE, -50);
imagefilter($background, IMG_FILTER_COLORIZE,100, 50,0);
break;
case "huey" :
imagehue($background, 50,$params);
break;
case "huex" :
imagehue($background, 100,$params);
break;
case "huew" :
imagehue($background, 150,$params);
break;
case "huev" :
imagehue($background, 200,$params);
break;
case "hueu" :
imagehue($background, 250,$params);
break;
case "old" :
$background = gd_apply_effectX($params,$background, 'old', 100);
break;
case "scratch" :
$background = gd_apply_effectX($params,$background, 'scratch', 100);
break;
case "purple" :
imagefilter($background, IMG_FILTER_COLORIZE, 0, 0, 100);
$background = gd_apply_effectX($params,$background, 'glitter', 100);
break;
case "ooh" :
imagefilter($background, IMG_FILTER_GRAYSCALE);
imagefilter($background, IMG_FILTER_BRIGHTNESS, -25);
imagefilter($background, IMG_FILTER_CONTRAST,-20);
imagefilter($background, IMG_FILTER_COLORIZE,50,-50,50);
$background = gd_apply_effectX($params,$background, 'glitter', 100);
break;
case "red" :
imagefilter($background, IMG_FILTER_GRAYSCALE);
imagefilter($background, IMG_FILTER_BRIGHTNESS, -25);
imagefilter($background, IMG_FILTER_CONTRAST,-20);
imagefilter($background, IMG_FILTER_COLORIZE,238,17,7);
$background = gd_apply_effectX($params,$background, 'glitter', 100);
break;
case "yellow" :
imagefilter($background, IMG_FILTER_GRAYSCALE);
imagefilter($background, IMG_FILTER_BRIGHTNESS, -70);
imagefilter($background, IMG_FILTER_CONTRAST,-20);
imagefilter($background, IMG_FILTER_COLORIZE,219,238,7);
$background = gd_apply_effectX($params,$background, 'glitter', 100);
break;
case "excite" :
imagefilter($background, IMG_FILTER_COLORIZE ,0, -155, -255);
$background = gd_apply_effectX($params,$background, 'glitter', 100);
break;
case "oldschool" :
imagefilter($background, IMG_FILTER_GRAYSCALE);
imagefilter($background, IMG_FILTER_BRIGHTNESS, 5);
imagefilter($background, IMG_FILTER_CONTRAST, -15);
$background = gd_apply_effectX($params,$background, 'vignette', 100);
break;
case "vignette" :
$background = gd_apply_effectX($params,$background, 'vignette', 100);
break;
case "contrast" :
imagefilter($background, IMG_FILTER_BRIGHTNESS, 8);
imagefilter($background, IMG_FILTER_CONTRAST, -8);
break;
case "glittzy" :
imagefilter($background, IMG_FILTER_MEAN_REMOVAL);
imagefilter($background, IMG_FILTER_CONTRAST,-50);
break;
case "vintage" :
imagefilter($background, IMG_FILTER_GRAYSCALE);
imagefilter($background, IMG_FILTER_BRIGHTNESS, 5);
imagefilter($background, IMG_FILTER_CONTRAST, -15);
$background = gd_apply_overlay($background, 'emulsion', 100);
break;
case "painting" :
imagefilter($background, IMG_FILTER_BRIGHTNESS, 5);
imagefilter($background, IMG_FILTER_CONTRAST,-20);
/* $background = gd_apply_overlay($background, 'border', 100);*/
$gaussian = array(
array(-2.0, -1.0, 0.0),
array(-1.0, 1.0, 1.0),
array(0.0, 1.0, 2.0)
);
imageconvolution($background, $gaussian, 1, 5);
$background = gd_apply_effectX($params,$background, 'canvas', 100);
break;
case "cartoon" :
imagefilter($background, IMG_FILTER_EDGEDETECT);
imagefilter($background, IMG_FILTER_GRAYSCALE);
imagefilter($background, IMG_FILTER_BRIGHTNESS, 10);
imagefilter($background, IMG_FILTER_CONTRAST, -40);
imagefilter($background, IMG_FILTER_BRIGHTNESS, 10);
imagefilter($background, IMG_FILTER_SELECTIVE_BLUR);
imagefilter($background, IMG_FILTER_BRIGHTNESS, 100);
imagefilter($background, IMG_FILTER_BRIGHTNESS, 5);
$background = gd_apply_effectX($params,$background, 'canvas', 100);
$matrix = array(
array(-1, -1, -1),
array(-1, 16, -1),
array(-1, -1, -1),
);
$divisor = array_sum(array_map('array_sum', $matrix));
$offset = 0;
imageconvolution($background, $matrix, $divisor, $offset);
imagefilter($background, IMG_FILTER_SMOOTH, 3);
break;
case "comic" :
imagefilter($background, IMG_FILTER_MEAN_REMOVAL);
imagefilter($background, IMG_FILTER_GRAYSCALE);
imagefilter($background, IMG_FILTER_BRIGHTNESS, 15);
imagefilter($background, IMG_FILTER_CONTRAST, -40);
imagefilter($background, IMG_FILTER_BRIGHTNESS, 10);
imagefilter($background, IMG_FILTER_SELECTIVE_BLUR);
imagefilter($background, IMG_FILTER_BRIGHTNESS, 30);
imagefilter($background, IMG_FILTER_CONTRAST, -100);
$matrix = array(
array(-1, -2, -1),
array(-2, 16, -2),
array(-1, -2, -1),
);
$divisor = array_sum(array_map('array_sum', $matrix));
$offset =0;
imageconvolution($background, $matrix, $divisor, $offset);
imagefilter($background, IMG_FILTER_SMOOTH, 2);
$background = gd_apply_effectX($params,$background, 'canvas', 100);
break;
case "warp" :
$background = gd_apply_effectX($params,$background, 'warp', 100);
break;
case "oppulence" :
imagefilter($background, IMG_FILTER_GRAYSCALE);
imagefilter($background, IMG_FILTER_BRIGHTNESS, -15);
imagefilter($background, IMG_FILTER_CONTRAST, -15);
$background = gd_apply_effectX($params,$background, 'oppulence', 100);
break;
case "blueflare" :
$background = gd_apply_effectX($params,$background, 'blueflare', 100);
break;
case "mesh" :
$background = gd_apply_effectX($params,$background, 'mesh', 100);
break;
case "shadow" :
$background = gd_apply_effectX($params,$background, 'shadow', 100);
break;
case "ribbonred" :
$background = gd_apply_effectX($params,$background, 'ribbonred', 100);
break;
case "morefire" :
$background = gd_apply_effectX($params,$background, 'morefire', 100);
break;
case "cyclone" :
$background = gd_apply_effectX($params,$background, 'cyclone', 100);
break;
case "bluesmoke" :
$background = gd_apply_effectX($params,$background, 'bluesmoke', 100);
break;
case "colorcloud" :
$background = gd_apply_effectX($params,$background, 'colorcloud', 100);
break;
case "smoke" :
$background = gd_apply_effectX($params,$background, 'smoke', 100);
break;
case "bluelights" :
$background = gd_apply_effectX($params,$background, 'bluelights', 100);
break;
case "cloud" :
$background = gd_apply_effectX($params,$background, 'cloud', 100);
break;
case "dynamicblueorange" :
$background = gd_apply_effectX($params,$background, 'dynamicblueorange', 100);
break;
case "pinkgreen" :
$background = gd_apply_effectX($params,$background, 'pinkgreen', 100);
break;
case "glitter" :
$background = gd_apply_effectX($params,$background, 'glitter', 100);
break;
case "bluepurple" :
$background = gd_apply_effectX($params,$background, 'bluepurple', 100);
break;
case "abstract" :
$background = gd_apply_effectX($params,$background, 'abstract', 100);
break;
case "rays" :
$background = gd_apply_effectX($params,$background, 'rays', 100);
break;
case "water" :
$background = gd_apply_effectX($params,$background, 'water', 100);
break;
case "sunburst" :
$background = gd_apply_effectX($params,$background, 'sunburst', 100);
break;
case "redsmoke" :
$background = gd_apply_effectX($params,$background, 'redsmoke', 100);
break;
case "bliss" :
$background = gd_apply_effectX($params,$background, 'bliss', 100);
break;
case "fairyblue" :
$background = gd_apply_effectX($params,$background, 'fairyblue', 100);
break;
case "fairydust" :
$background = gd_apply_effectX($params,$background, 'fairydust', 100);
break;
case "cloudy" :
$background = gd_apply_effectX($params,$background, 'cloudy', 100);
break;
case "goldlights" :
$background = gd_apply_effectX($params,$background, 'goldlights', 100);
break;
case "fractal" :
$background = gd_apply_effectX($params,$background, 'fractal', 100);
break;
case "fireworks" :
$background = gd_apply_effectX($params,$background, 'fireworks', 100);
break;
case "fire" :
$background = gd_apply_effectX($params,$background, 'fire', 100);
break;
case "art" :
$background = gd_apply_effectX($params,$background, 'art', 100);
break;
case "energy" :
$background = gd_apply_effectX($params,$background, 'energy', 100);
break;
case "lightning" :
$background = gd_apply_effectX($params,$background, 'lightning', 100);
break;
case "bloody" :
$background = gd_apply_effectX($params,$background, 'bloody', 100);
break;
case "purplesmoke" :
$background = gd_apply_effectX($params,$background, 'purplesmoke', 100);
break;
case "pinkgreensmoke" :
$background = gd_apply_effectX($params,$background, 'pinkgreensmoke', 100);
break;
case "electricity" :
$background = gd_apply_effectX($params,$background, 'electricity', 100);
break;
case "starme" :
$background = gd_apply_effectX($params,$background, 'starme', 100);
break;
case "dynamicpink" :
$background = gd_apply_effectX($params,$background, 'dynamicpink', 100);
break;
case "dynamicorange" :
$background = gd_apply_effectX($params,$background, 'dynamicorange', 100);
break;
case "greensmoke" :
$background = gd_apply_effectX($params,$background, 'greensmoke', 100);
break;
case "dynamicblue" :
$background = gd_apply_effectX($params,$background, 'dynamicblue', 100);
break;
case "dynamicpurple" :
$background = gd_apply_effectX($params,$background, 'dynamicpurple', 100);
break;
case "dynamicbrown" :
$background = gd_apply_effectX($params,$background, 'dynamicbrown', 100);
break;
case "blank" :
break;
default:
$background = gd_apply_effectX($params,$background, $moodswing2, 100);
break;
};
}