Ghost Exploiter Team Official
Mass Deface
Directory >>
/
var
/
www
/
html
/
back
/
vendor
/
spatie
/
image
/
src
/
Drivers
/
Concerns
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
type
file
dir
+File/Dir
AddsWatermark.php
2.366KB
edt
ren
CalculatesCropOffsets.php
0.992KB
edt
ren
CalculatesFocalCropAndR
...
1.361KB
edt
ren
CalculatesFocalCropCoor
...
1.036KB
edt
ren
GetsOrientationFromExif
...
0.562KB
edt
ren
PerformsFitCrops.php
1.285KB
edt
ren
PerformsOptimizations.php
0.476KB
edt
ren
ValidatesArguments.php
0.385KB
edt
ren
<?php namespace Spatie\Image\Drivers\Concerns; use Spatie\Image\Enums\CropPosition; /** @mixin \Spatie\Image\Drivers\ImageDriver */ trait CalculatesCropOffsets { /** @return array<int> */ protected function calculateCropOffsets(int $width, int $height, CropPosition $position): array { [$offsetPercentageX, $offsetPercentageY] = $position->offsetPercentages(); $offsetX = (int) (($this->getWidth() * $offsetPercentageX / 100) - ($width / 2)); $offsetY = (int) (($this->getHeight() * $offsetPercentageY / 100) - ($height / 2)); $maxOffsetX = $this->getWidth() - $width; $maxOffsetY = $this->getHeight() - $height; if ($offsetX < 0) { $offsetX = 0; } if ($offsetY < 0) { $offsetY = 0; } if ($offsetX > $maxOffsetX) { $offsetX = $maxOffsetX; } if ($offsetY > $maxOffsetY) { $offsetY = $maxOffsetY; } return [$offsetX, $offsetY]; } }