<?php $img = imagecreatefromgif('https://www.tutorialspoint.com/images/html.gif'); $colors = array(); $colors[] = imagecolorresolvealpha($img, 120, 0, 190,0); $colors[] = imagecolorresolvealpha($img, 110, 0, 140,0); $colors[] = imagecolorresolvealpha($img, 120, 190, 0,0); print_r($colors); imagedestroy($img); ?>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more