"; $image = new Imagick("$_SESSION[path]"); $geometry = $image->getImagePage(); $w = (string)$geometry[width]; $h = (string)$geometry[height]; $bytes = $image->getImagesize(); $frames = $image->getNumberImages(); $format = $image->getImageformat(); $num_colors = $image->getImageColors(); echo "Your Image
"; if ( $frames > 1) { echo ""; } if ( $_GET[x] && $_GET[y] ) { $pixel = $image->getImagePixelColor($_GET[x], $_GET[y]); $color = $pixel->getcolor(); $r = dechex($color[r]); $g = dechex($color[g]); $b = dechex($color[b]); if ( strlen($r) == 1) { $r = "0" . $r; } if ( strlen($g) == 1) { $g = "0" . $g; } if ( strlen($b) == 1) { $b = "0" . $b; } $rgb = $r . $g . $b; echo ""; } echo "
Dimensions$w x $h
Size$bytes bytes
Number Of Colors$num_colors
Format$format
Frames$frames
Color at ($_GET[x],$_GET[y]) $rgb
"; } else { echo "
No Image
"; } ?>