Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Intervention\Image\Imagick\Commands; use Intervention\Image\Commands\Abs..
Decoded Output download
<?php
namespace Intervention\Image\Imagick\Commands;
use Intervention\Image\Commands\AbstractCommand;
class ResizeCommand extends AbstractCommand
{
/**
* Resizes image dimensions
*
* @param \Intervention\Image\Image $image
* @return boolean
*/
public function execute($image)
{
$width = $this->argument(0)->value();
$height = $this->argument(1)->value();
$constraints = $this->argument(2)->type('closure')->value();
// resize box
$resized = $image->getSize()->resize($width, $height, $constraints);
// modify image
$image->getCore()->scaleImage($resized->getWidth(), $resized->getHeight());
return true;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Intervention\Image\Imagick\Commands;
use Intervention\Image\Commands\AbstractCommand;
class ResizeCommand extends AbstractCommand
{
/**
* Resizes image dimensions
*
* @param \Intervention\Image\Image $image
* @return boolean
*/
public function execute($image)
{
$width = $this->argument(0)->value();
$height = $this->argument(1)->value();
$constraints = $this->argument(2)->type('closure')->value();
// resize box
$resized = $image->getSize()->resize($width, $height, $constraints);
// modify image
$image->getCore()->scaleImage($resized->getWidth(), $resized->getHeight());
return true;
}
}
Function Calls
None |
Stats
MD5 | 47013b84cf29991df0bcf2bb13f229db |
Eval Count | 0 |
Decode Time | 89 ms |