CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2004
    Location
    Pakistan
    Posts
    466

    Question 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
    » Please 'Rate This Post' if it helped (encourage us to help you more)
    » Build GUI in minute using rad c++
    » Free IDE + GUI code generator - screenshot
    » Free WINAPI sourcecode and tutorials

  2. #2
    Join Date
    Jul 2004
    Location
    Holy Land
    Posts
    306

    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...
    Rate this post if you found it useful!
    10X, gilly914

  3. #3
    Join Date
    Nov 2004
    Location
    Pakistan
    Posts
    466

    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
    » Please 'Rate This Post' if it helped (encourage us to help you more)
    » Build GUI in minute using rad c++
    » Free IDE + GUI code generator - screenshot
    » Free WINAPI sourcecode and tutorials

  4. #4
    Join Date
    May 2004
    Location
    Pell City, Alabama
    Posts
    126

    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.

  5. #5
    Join Date
    Nov 2004
    Location
    Pakistan
    Posts
    466

    Angry 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.
    » Please 'Rate This Post' if it helped (encourage us to help you more)
    » Build GUI in minute using rad c++
    » Free IDE + GUI code generator - screenshot
    » Free WINAPI sourcecode and tutorials

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured