pressbooks/pressbooks — pull request #19 by bdolor (2013-06-27 18:41:24+00:00)
Title: try/catch validate image based on mimetype

During an import I've come across images with extensions that are different from their mimetype (ie. someimage.gif has a mimetype of image/png). This solves the problem of images not importing based on an incorrect extension and should be relatively harmless for other code that uses is_valid_image. Please confirm.