PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Images » Image_Barcode » Bug #8813

image can't be saved to filesystem

Details

Request #8813image can't be saved to filesystem
Submitted2006-09-29 10:52 UTC
Fromdubler at arcmedia dot ch
Assignedcweiske
StatusClosed
PackageImage_Barcode
PHP Version4.4.3
OSLinux
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.