There is a package to do this included with the CL-HTTP distribution (in mac:contributions:miketravers:cl-http-graphics). This package uses an external file and an external application to do the conversion to GIF or JPEG format, and is otherwise less than ideal, but it may be a useful starting point.