How can I automatically determine whether an image file depicts a photo or a \'graphic\'?
For example using Imagemagick?
Compute the entropy of the image. Artificial images usually have much lower entropy than photographs.