nono/gofpdf — pull request #1 by pedromg (2014-10-09 01:41:39+00:00)
Title: P urlimage

URLImage tried to get the image type (gif, jpg, png) from the parameter fileURL.
That's a problem if the fileURL has no extension. Code tries to default to jpg.
Yet if the real image is not a jpg, the JPEG library reads the initial marker and if it diffs, returns error.

Case: if the image is a shortURL.
Case: if the image is in a AWS or GoogleCloudStorage bucket.

Fix: get the Content-Type from the response to the fileURL request.