Convert GIF images into PNG before passing to PDF::API2 due to problems with resize.