tobeyt23 Posted March 2, 2009 Share Posted March 2, 2009 Does anyone know how or evening if you can detect the number of colors in an image upon upload? Link to comment https://forums.phpfreaks.com/topic/147584-image/ Share on other sites More sharing options...
gevans Posted March 2, 2009 Share Posted March 2, 2009 Take a look at exif-read-data I think that's the most inormation you'll get easily from an image using php. Not sure if it will do what you require. Link to comment https://forums.phpfreaks.com/topic/147584-image/#findComment-774762 Share on other sites More sharing options...
Yesideez Posted March 2, 2009 Share Posted March 2, 2009 Using the GD library you can create an image using the existing image as a background and then run two loops. One to run through each row and line pixel by pixel reading the data but it'd get progressively slower the bigger the image. Link to comment https://forums.phpfreaks.com/topic/147584-image/#findComment-774763 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.