Active
Project:
Pdfview
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2007 at 07:39 UTC
Updated:
17 Jan 2008 at 22:58 UTC
Jump to comment: Most recent file
Since GIF doesn't work in TCPDF.. Could there be some kind of process to ignore .gif? I know the smilies module especially uses GIFs a lot, and if you try to make pdf, you get
TCPDF error: Unsupported image type: gif
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 130016.patch | 992 bytes | douggreen |
Comments
Comment #1
John Bryan commentedSuffered similar but skip GIFs not an option in my case, but found some code elsewhere.
Try editing the tcpdf.php file and insert the following immediately after the functionstatement for the "image" routine:-
public function Image($file, $x, $y, $w=0, $h=0, $type='', $link='') {
This should provide a cack handed way to get GIFs displayed and gets around a transparency/interlace problem with TCPDF/FPDF
Comment #2
rconstantine commentedWhere do the image functions, such as imagecreatefromgif come from? Another module? GD?
Comment #3
panis commentedGD functions. You can extend the TCPDF class see http://www.hyrme.com for a similar approach but within the tcpdf framework which allows you to write any _parseXXX hook.
Comment #4
bigcrunch commentedIt is possible convert Gif images to Png with 'gif_outputAsPNG' function or similar?
An example: http://es.php.net/imagecreatefromgif
Comment #5
rconstantine commentedThat's exactly what the code above does, 4th line down.
Comment #6
bigcrunch commentedThis code works, but the images come out very small.
Comment #7
douggreen commentedThe attached file (to be applied against tcpdf) might help someone. I confirm that the patch fixes the problem.