if it should be converted to PNG or JPEG by analyzing the picture and figuring out if its a drawing or a photograph.
Which would you use for which? And why?
Both formats can represent either. JPG can be more compact; but is lossy. PNG is non-lossy and does a pretty good job of compaction commensurate with not throwing away information.
For my taste, png is a far better format for either; but "best" depends completely upon your criteria?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.