Jump to content


get string of an images

  • Please log in to reply
2 replies to this topic

#1 neugi

  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 14 August 2006 - 12:09 PM


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?


#2 onlyican

  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 14 August 2006 - 02:24 PM

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
Tell me the problem, I will try tell you the solution

#3 Daniel0

  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 14 August 2006 - 05:07 PM

Take a look at this: http://php.net/imagecreatefromstring

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users