Results 1 to 7 of 7

Thread: convert jpg to bmp

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    187

    convert jpg to bmp

    With php, can i convert a jpg image to bmp image?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: convert jpg to bmp

    Yes, if you have the GD library/extension installed and enabled.

    PHP: Image Functions

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    187

    Re: convert jpg to bmp

    do you know how?which kind of library? where can I found information?

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: convert jpg to bmp

    Make a phpinfo() page and look for a section titled "gd". If it's there, you have it installed. If not, you will have to enable it in php.ini. It's bundled by default, so you shouldn't have to download anything.

    Code:
    extension=php_gd2.dll   ; Windows
    extension=php_gd2.so    ; Unix

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    187

    Re: convert jpg to bmp

    ok there is it!!!, but how can i use it?

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: convert jpg to bmp

    Well you could have started by reading that link that I posted.
    However here is some (untested) sample code:
    PHP Code:
    $imgh imagecreatefromjpeg($img_filename);
    image2wbmp($imgh$output_filename); 

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    187

    Re: convert jpg to bmp

    I've controlled on web....but wbmp isn't = to bmp.

    WBMP is for wap,is monocromatic, while bmp is for pc.

    is it wrong?

    I need bitmap and not wbmp.

    So can i do ?

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