473,413 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

problem in gif and function.imagecreatefromgif

nouras
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
3 2645
chathura86
227 100+
make sure that the given path

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

is correct

Regards
Apr 15 '10 #2
nouras
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
15
please Help me...........
Apr 18 '10 #4

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

Similar topics

0
by: Moluske | last post by:
The web site was on another server i switch to a new one but this server hav now PHP Safe Mode to ON so i get error when creating thumbnail. I cant put PHP Safe mode to OFF. is ther any thing i...
5
by: Shawn Hamzee | last post by:
Hello All, I am having a problem with Image_Graph on php 5.1.4. I installed the package and all of its dependencies through pear installer without any hitches. Then I started to add some very...
2
by: Mr Fred | last post by:
Hi This one's been puzzling me for a while - I can only think it must be a bug in PHP 5.1.4 (which is what I'm running). I'm pretty sure it does the same thing in PHP 4. Is it a 'feature' I'm...
3
by: comp.lang.php | last post by:
re: http://www.google.com/search?hl=en&q=swedish+flag&btnG=Google+Search I am trying only this: $image = @imagecreatefromgif('/path/to/this/image.gif'); This line alone causes a...
3
by: caveman | last post by:
Hi i am using PHP to upload picture files to a file in my server, but for some reason it will not create thumbnails of the upload, all that happens is that where the thumbnail is meant to be...
11
by: callieandmark | last post by:
I have a very simple file upload script which creates a thumbnail of the file (jpg) upon uploading. This works fine with small images, however, if i try to upload a file over about 1mb the...
1
by: deshg | last post by:
Hey everyone how are you all doing? I am trying to use the imagerotate GD function to place an image on top of another image at an angle. Obviously when it rotates an image it creates a...
0
AMT India
by: AMT India | last post by:
I have an image resizing function using GD Library in php.After resizing the gif images,they lose their animation properties. $file_name_src = $upload_file;...
8
by: adamjblakey | last post by:
Hi, I am trying to build a function and from a script but it does not seem to be working. Can anyone see anything wrong with this? Also i need it to convert the large image to a specific size...
3
by: helraizer1 | last post by:
Hey folks, yet again. if ($back == "m") //$back is a value pulled from a db; that works perfectly. { $wid = $rowing; $hei = $rowing; createthumb("660x240background2.gif", "./user/" ....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.