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 declare(strict_types=1); namespace Intervention\Image\Drivers\Imagick\Modifiers; ..
Decoded Output download
<?php
declare(strict_types=1);
namespace Intervention\Image\Drivers\Imagick\Modifiers;
use Intervention\Image\Exceptions\ColorException;
use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Interfaces\SpecializedInterface;
use Intervention\Image\Modifiers\ProfileModifier as GenericProfileModifier;
class ProfileModifier extends GenericProfileModifier implements SpecializedInterface
{
public function apply(ImageInterface $image): ImageInterface
{
$imagick = $image->core()->native();
$result = $imagick->profileImage('icc', (string) $this->profile);
if ($result === false) {
throw new ColorException('ICC color profile could not be set.');
}
return $image;
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Intervention\Image\Drivers\Imagick\Modifiers;
use Intervention\Image\Exceptions\ColorException;
use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Interfaces\SpecializedInterface;
use Intervention\Image\Modifiers\ProfileModifier as GenericProfileModifier;
class ProfileModifier extends GenericProfileModifier implements SpecializedInterface
{
public function apply(ImageInterface $image): ImageInterface
{
$imagick = $image->core()->native();
$result = $imagick->profileImage('icc', (string) $this->profile);
if ($result === false) {
throw new ColorException('ICC color profile could not be set.');
}
return $image;
}
}
Function Calls
None |
Stats
MD5 | 9a93f0070315525b4b10336618cec045 |
Eval Count | 0 |
Decode Time | 130 ms |