webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
intervention
/
image
/
src
/
Intervention
/
Image
/
Gd
/
Commands
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
BackupCommand.php
0.535KB
edt
ren
BlurCommand.php
0.528KB
edt
ren
BrightnessCommand.php
0.48KB
edt
ren
ColorizeCommand.php
0.821KB
edt
ren
ContrastCommand.php
0.476KB
edt
ren
CropCommand.php
1.216KB
edt
ren
DestroyCommand.php
0.551KB
edt
ren
FillCommand.php
1.957KB
edt
ren
FitCommand.php
1KB
edt
ren
FlipCommand.php
0.908KB
edt
ren
GammaCommand.php
0.467KB
edt
ren
GetSizeCommand.php
0.508KB
edt
ren
GreyscaleCommand.php
0.399KB
edt
ren
HeightenCommand.php
0.782KB
edt
ren
InsertCommand.php
1.105KB
edt
ren
InterlaceCommand.php
0.458KB
edt
ren
InvertCommand.php
0.381KB
edt
ren
LimitColorsCommand.php
1.339KB
edt
ren
MaskCommand.php
2.425KB
edt
ren
OpacityCommand.php
0.744KB
edt
ren
PickColorCommand.php
0.985KB
edt
ren
PixelCommand.php
0.654KB
edt
ren
PixelateCommand.php
0.477KB
edt
ren
ResetCommand.php
0.944KB
edt
ren
ResizeCanvasCommand.php
2.806KB
edt
ren
ResizeCommand.php
2.301KB
edt
ren
RotateCommand.php
0.751KB
edt
ren
SharpenCommand.php
0.763KB
edt
ren
TrimCommand.php
4.976KB
edt
ren
WidenCommand.php
0.776KB
edt
ren
<?php namespace Intervention\Image\Gd\Commands; use Intervention\Image\Commands\AbstractCommand; class MaskCommand extends AbstractCommand { /** * Applies an alpha mask to an image * * @param \Intervention\Image\Image $image * @return boolean */ public function execute($image) { $mask_source = $this->argument(0)->value(); $mask_w_alpha = $this->argument(1)->type('bool')->value(false); $image_size = $image->getSize(); // create empty canvas $canvas = $image->getDriver()->newImage($image_size->width, $image_size->height, [0,0,0,0]); // build mask image from source $mask = $image->getDriver()->init($mask_source); $mask_size = $mask->getSize(); // resize mask to size of current image (if necessary) if ($mask_size != $image_size) { $mask->resize($image_size->width, $image_size->height); } imagealphablending($canvas->getCore(), false); if ( ! $mask_w_alpha) { // mask from greyscale image imagefilter($mask->getCore(), IMG_FILTER_GRAYSCALE); } // redraw old image pixel by pixel considering alpha map for ($x=0; $x < $image_size->width; $x++) { for ($y=0; $y < $image_size->height; $y++) { $color = $image->pickColor($x, $y, 'array'); $alpha = $mask->pickColor($x, $y, 'array'); if ($mask_w_alpha) { $alpha = $alpha[3]; // use alpha channel as mask } else { if ($alpha[3] == 0) { // transparent as black $alpha = 0; } else { // $alpha = floatval(round((($alpha[0] + $alpha[1] + $alpha[3]) / 3) / 255, 2)); // image is greyscale, so channel doesn't matter (use red channel) $alpha = floatval(round($alpha[0] / 255, 2)); } } // preserve alpha of original image... if ($color[3] < $alpha) { $alpha = $color[3]; } // replace alpha value $color[3] = $alpha; // redraw pixel $canvas->pixel($color, $x, $y); } } // replace current image with masked instance $image->setCore($canvas->getCore()); return true; } }
<=Back
Liking