By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

problem in gif and function.imagecreatefromgif

nouras
P: 15
I am Trying to generate pdf document using TCPDF
But it gives error when there is image with gif extention
and it doesn't give this error in other extention of image

the error is ::
================================================== ======
Warning: imagecreatefromgif() [function.imagecreatefromgif]: '../pics/tiny/gallery/02.gif' is not a valid GIF file in D:\htdocs\Shamscan\webadmin\admin_incs\tcpdf\tcpdf .php on line 4785

Warning: imagejpeg(): supplied argument is not a valid Image resource in D:\htdocs\Shamscan\webadmin\admin_incs\tcpdf\tcpdf .php on line 4959

Warning: imagedestroy(): supplied argument is not a valid Image resource in D:\htdocs\Shamscan\webadmin\admin_incs\tcpdf\tcpdf .php on line 4960

Warning: getimagesize() [function.getimagesize]: Read error! in D:\htdocs\Shamscan\webadmin\admin_incs\tcpdf\tcpdf .php on line 4974
TCPDF ERROR: Missing or incorrect image file: D:/htdocs/Shamscan/webadmin/admin_incs/tcpdf/cache/\jpgB2D.tmp
================================================== ======
what can i do ???
Apr 15 '10 #1
Share this Question
Share on Google+
3 Replies


chathura86
100+
P: 227
make sure that the given path

../pics/tiny/gallery/02.gif

is correct

Regards
Apr 15 '10 #2

nouras
P: 15
thank you...
but i am sure that the path was correct , because::
1- the image display in the browser, when click the button which generate the pdf document the error appears.
2- this error appeare only when the image type((Gif)), and doesn't appeare when it was ((jpg)).

i find in google this ::
((TCPDF includes native support for JPEG and PNG images, and supports GIFs via the GD library. TCPDF should be able to include GIFs if the server has this library.))

but i don't know what i can do, is this library solve the problem ??
and how can i do that ??
Apr 17 '10 #3

nouras
P: 15
please Help me...........
Apr 18 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.