Jump to content

Archived

This topic is now archived and is closed to further replies.

neugi

get string of an images

Recommended Posts

Hi,

i'm creating an image  (gif) from an imagestring whith this function:

$img = imagecreatefromstring($filestring);

after some other stuff im doing with the image i want to get back the string (jpeg), but without writing the image to the server.

so imagejpeg($img) don't work for me. is there a function that i can use to get only the string of the image $img?

gruz

Share this post


Link to post
Share on other sites
u need to set the headers to mimetype of a jpeg.

The information is on the php.net site, i think under the user comments

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.