Home » Images » Image_Barcode » Bug #8813
image can't be saved to filesystem
Details
| Request #8813 | image can't be saved to filesystem |
|---|---|
| Submitted | 2006-09-29 10:52 UTC |
| From | dubler at arcmedia dot ch |
| Assigned | cweiske |
| Status | Closed |
| Package | Image_Barcode |
| PHP Version | 4.4.3 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-09-29 10:52 UTC] dubler at arcmedia dot ch
Description:
------------
i'm using Image_Barcode to generate barcodes I want to then
embed in a pdf file (through FPDF). the problem is, that the
barcode class just returns the image (by setting the header
("content-type: image/jpg) and then imagepng($img)). i've
tried saving the returned stream to a file with fopen/fgets/
fclose but that doesn't work. i now changed the draw() method
so that it uses the second parameter in imagepng() to save the
image to disk so that i can then grab it with FPDF.
It would be nice, if draw() took another parameter, so that
you could either save the image or have it returned like it
does now.