Ell20 Posted June 25, 2008 Share Posted June 25, 2008 Hey, Is there anyway of determining what the main colour of a given image dynamically in PHP? Thanks for any help Link to comment https://forums.phpfreaks.com/topic/111819-determine-colour-of-an-image/ Share on other sites More sharing options...
rhodesa Posted June 25, 2008 Share Posted June 25, 2008 not that i know of...you may be able to loop over all the pixels, and use http://us.php.net/manual/en/function.imagecolorat.php to count the number of pixels per color Link to comment https://forums.phpfreaks.com/topic/111819-determine-colour-of-an-image/#findComment-574084 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.