I'm embarking on what I believe may be somewhat of an experiment...
To come up with (or discover, as it could already exist) a method to determine whether a given image file, regardless of format, is a photo or a graphic.
"Photo" meaning something like scenery, people, etc. V.S. "Graphic" meaning an icon, illustration, chart, UI screenshot, etc.
I came up with a nice PHP / ImageMagick script in the past week which pulls statistics from image files and nicely applies fixes to white balance, tone, vibrance, sharpness, shadows/highlights.
Now I'd like to take it a step further: Automatically detect photo content, then apply the aforementioned processing.
One method which has worked somewhat-consistently so far was to determine if the image had EXIF data, but this only works on JPEGs. This isn't foolproof of course, though.
Are there any known methods via ImageMagick, GD or otherwise for detecting a "photo" vs a "graphic"?
I do have the capability of installing/running applications besides ImageMagick & GD on our web server if need be.
Thanks!