Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    jpeg2bmp help please..

    Hi all, this is my code:

    Code:
    $image = @imagecreatefromjpeg($filename);
    if ($image === false) { die ('Unable to open image'); }
    
    $height = imagesy($image);
    $width = imagesx($image);
    
    $bmpdest = "../bmp/" . $rand . ".bmp";
    $bmp = jpeg2wbmp($filename, $bmpdest, 100, 100, 4);
    It's creating the file and everything, but once the .bmp is downloaded and opened, it's saying it's not a valid format.

    Anyone able to shed some light?

  • #2
    New Coder
    Join Date
    Aug 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm starting to think that this isn't possible

  • #3
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    are you calling the image via html <img scr="yourpage.php" alt="img manip with php" />

  • #4
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    WBMP is not a bitmap like you're thinking it is. http://www.webopedia.com/TERM/W/WBMP.html


  •  

    Posting Permissions

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