Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Test Imagick, kmeansImage --SKIPIF-- <?php require_once(dirname(__FILE__) . '/ski..

Decoded Output download

--TEST--
Test Imagick, kmeansImage
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('kmeansImage'));
?>
--FILE--
<?php


function kmeansImage() {
    $imagick = new \Imagick(__DIR__ . '/Biter_500.jpg');
    $imagick->kmeansImage(
		128,
		10,
		5
	);

    $imagick->writeImage(__DIR__ . '/kmeansImage_output_image.png');
//    $imagick->getImageBlob();
}

kmeansImage() ;
echo "Ok";
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/kmeansImage_output_image.png');
?>
--EXPECTF--
Ok

Did this file decode correctly?

Original Code

--TEST--
Test Imagick, kmeansImage
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('kmeansImage'));
?>
--FILE--
<?php


function kmeansImage() {
    $imagick = new \Imagick(__DIR__ . '/Biter_500.jpg');
    $imagick->kmeansImage(
		128,
		10,
		5
	);

    $imagick->writeImage(__DIR__ . '/kmeansImage_output_image.png');
//    $imagick->getImageBlob();
}

kmeansImage() ;
echo "Ok";
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/kmeansImage_output_image.png');
?>
--EXPECTF--
Ok

Function Calls

dirname 1

Variables

None

Stats

MD5 ac4f61fc8f6dcf698efdd95374fd5d8f
Eval Count 0
Decode Time 91 ms