GD - jpeg writing question
Hi guys
Scenario
I read the icon file using php, after I have all the information of icon file e.g. width, height, bitx/pixel, total_colors, image data etc. And now I want to write that icon data (actual image from icon) as jpg file.
Question
How will I write the image I already have in binary form to jpeg file ?
Any help is highly appreciated.
regards
Re: GD - jpeg writing question
Hey there...
I'm not that familiar with working with image files in PHP, but I know that there is a function called :
createimagefromjpeg();
and It's pretty easy to use it...
search for it at php.net, and you should get a thorough explanation along with a list of similiar functions and examples that will probably help alot...
Re: GD - jpeg writing question
I hope you got question wrong. What I am tryign to do is create a jpeg from raw image data.
thanks for reply.
regards
Re: GD - jpeg writing question
If you already have a binary jpeg memory, then you just need to fopen() a file and fwrite() the data.
Re: GD - jpeg writing question
Quote:
Originally Posted by Mutilated1
If you already have a binary jpeg memory, then you just need to fopen() a file and fwrite() the data.
LOL, I never said I have jpeg data, I said I have raw data of image.
Forget it.
Thanks for your kind replies.
Staff please close the topic, if possible.