Back to the snippets index

Use an array ( Anthony 22/6/2008 )

Using an array to build the IM command.

IM code:

<?php
$array 
= array('+23+67''+75+789 ''+76+297''+256+91');
$cmd " \( -size 475x873 xc:black \) ".
" \( cone.png -resize 30x30 \)  ".
" \( -clone -colorize 40% \)  ".
" \( -clone -colorize 20% \)  ".
" \( -clone -colorize 90% \)  ";
foreach (
$array as $value) { 
$cmd .= " \( -clone -repage ".$value." \) ";
}
$cmd .= " -delete 1-4 -compose screen -layers flatten ";
exec("convert $cmd output.png");
?>

Batch file - windows server
Check size before resizing
Dividing an image
Fonts Installed view
Get image data into a variable 1
Get image data into a variable 2
Gravity option
New image size in variable
Row of images
Setup Information
Use an array
Warhol effect