[code]<style type="text/css">div { width: 1px; height: 1px; position: absolute; } </style><?php
	function divit ($pic) {
		$img = imagecreatefrompng($pic);
		
		$output = '<div style="position: relative;">';
		for ($y = 0; $y <= (imagesy($img) - 1); $y++) {
			for ($x = 0; $x <= (imagesx($img) - 1); $x++) {
				$color = imagecolorat($img, $x, $y);
				$color_tran = imagecolorsforindex($img, $color);
				$r = ($color >> 16) & 0xFF;
				$g = ($color >> 8) & 0xFF;
				$b = $color & 0xFF;
				
				if ((1 - $color_tran['alpha'] / 127) != 0) $output .= '<div style="left:' . $x . ';top:' . $y . ';background:rgb(' . $r . ',' . $g . ',' . $b . ');opacity:' . (1 - $color_tran['alpha'] / 127) . ';"><!-- --></div>';
			}
		}
		imagedestroy($img);
		
		$output .= '</div>';
		
		return $output;
	}
	
	echo divit($_GET['pic']);
?>[/code]